Difference between revisions of "Thumbnailing"

From Freephile Wiki
Jump to navigation Jump to search
(correct path)
(4 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
|}
 
|}
  
The logo file at <nowiki>https://freephile.org/wiki/File:Eqt.logo.png</nowiki> is 599 378 pixels and is stored at <br><nowiki>https://freephile.org/w/images/8/8c/Eqt.logo.png</nowiki>
+
The logo file at <nowiki>https://freephile.org/wiki/File:Eqt.logo.png</nowiki> is 599 378 pixels and is stored at <br><nowiki>https://freephile.org/w/images/8/8c/Eqt.logo.png</nowiki>
 
Meanwhile, the thumbnails are served from <br>
 
Meanwhile, the thumbnails are served from <br>
 
<nowiki>https://freephile.org/w/images/</nowiki>'''thumb'''<nowiki>/8/8c/Eqt.logo.png/</nowiki>'''120px'''<nowiki>-Eqt.logo.png</nowiki>
 
<nowiki>https://freephile.org/w/images/</nowiki>'''thumb'''<nowiki>/8/8c/Eqt.logo.png/</nowiki>'''120px'''<nowiki>-Eqt.logo.png</nowiki>
Line 33: Line 33:
 
|-
 
|-
 
! Wiki Text !! Result
 
! Wiki Text !! Result
|-
 
| <nowiki>[[File:Eqt.logo.png|1000px|link=]]</nowiki> || [[File:Eqt.logo.png|1000px|link=]]
 
 
|-
 
|-
 
| <nowiki>[[File:Eqt.logo.png|200px|link=]]</nowiki> || [[File:Eqt.logo.png|200px|link=]]
 
| <nowiki>[[File:Eqt.logo.png|200px|link=]]</nowiki> || [[File:Eqt.logo.png|200px|link=]]
Line 41: Line 39:
 
|-
 
|-
 
| <nowiki>[[File:Eqt.logo.png|64px|link=]]</nowiki> || [[File:Eqt.logo.png|64px|link=]]
 
| <nowiki>[[File:Eqt.logo.png|64px|link=]]</nowiki> || [[File:Eqt.logo.png|64px|link=]]
|-
 
| <nowiki>[[File:Eqt.logo.png|16px|link=]]</nowiki> || [[File:Eqt.logo.png|16px|link=]]
 
 
|}
 
|}
  
Line 49: Line 45:
 
! Wiki Text !! Result
 
! Wiki Text !! Result
 
|-
 
|-
| <nowiki>[[File:QB_cube.svg|1000px|link=]]</nowiki> || [[File:QB_cube.svg|1000px|link=]]
+
| <nowiki>[[File:Qb.cube.logo.png|200px|link=]]</nowiki> || [[File:Qb.cube.logo.png|200px|link=]]
|-
 
| <nowiki>[[File:QB_cube.svg|200px|link=]]</nowiki> || [[File:QB_cube.svg|200px|link=]]
 
|-
 
| <nowiki>[[File:QB_cube.svg|128px|link=]]</nowiki> || [[File:QB_cube.svg|128px|link=]]
 
 
|-
 
|-
| <nowiki>[[File:QB_cube.svg|64px|link=]]</nowiki> || [[File:QB_cube.svg|64px|link=]]
+
| <nowiki>[[File:Eqt.logo.png|128px|link=]]</nowiki> || [[File:Qb.cube.logo.png|128px|link=]]
 
|-
 
|-
| <nowiki>[[File:QB_cube.svg|16px|link=]]</nowiki> || [[File:QB_cube.svg|16px|link=]]
+
| <nowiki>[[File:Eqt.logo.png|64px|link=]]</nowiki> || [[File:Qb.cube.logo.png|64px|link=]]
 
|}
 
|}
 
Note that svg upscaling doesn't seem to be working
 
 
 
=== Old Versions ===
 
=== Old Versions ===
 
Because the wiki versions files, you can update any media file, and still have the "old" one accessible.  This works in much the same way as the thumbnailing too... except the word 'archive' is in the path.
 
Because the wiki versions files, you can update any media file, and still have the "old" one accessible.  This works in much the same way as the thumbnailing too... except the word 'archive' is in the path.
 
[[File:Business.card.backside.jpg|120px|current card]] compared to  
 
[[File:Business.card.backside.jpg|120px|current card]] compared to  
https://wiki.freephile.org/w/img_auth.php/thumb/archive/5/5f/20160127044917!Business.card.backside.jpg/120px-Business.card.backside.jpg
+
https://freephile.org/w/images/thumb/archive/5/5f/20160127044917%21Business.card.backside.jpg/120px-Business.card.backside.jpg
  
 
== Thumbnailing Errors ==
 
== Thumbnailing Errors ==
If you get an error about "Error creating thumbnail: Unable to save thumbnail to destination", and you've checked that the "images" directory is writable by the web server, as well as any sub-directories, then you might be able to solve the problem by '''unsetting''' the <code>[[mw:Manual:$wgTmpDirectory|$wgTmpDirectory]]</code> setting in your LocalSettings.php file.  I had  
+
If you get an error about "Error creating thumbnail: Unable to save thumbnail to destination", and you've checked that the "images" directory is writable by the web server, as well as any sub-directorys, then you might be able to solve the problem by '''unsetting''' the <code>[[mw:Manual:$wgTmpDirectory|$wgTmpDirectory]]</code> setting in your LocalSettings.php file.  I had  
<code>$wgTmpDirectory = "{$wgUploadDirectory}/tmp";</code> in a v1_26 version of MediaWiki. Thumbnails were generated after I commented-out the setting (thus restoring the default from DefaultSettings.php -- which luckily worked for me).
+
<code>$wgTmpDirectory = "{$wgUploadDirectory}/tmp";</code> in a v1_26 version of MediaWiki. Thumbnails were generated after I commented the setting.
  
 
== Reference ==
 
== Reference ==

Revision as of 15:24, 13 August 2018