Difference between revisions of "Thumbnailing"

From Freephile Wiki
Jump to navigation Jump to search
(correct path)
(Created page with "It's been said by many a carpenter: "The only nail you don't want to hit with a hammer is your Thumb nail". But that's not what we mean here by thumbnail. In :Category:Gra...")
(9 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 34: Line 34:
 
! 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|link=]]</nowiki> || [[File:Eqt.logo.png|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=]]
|-
 
| <nowiki>[[File:Eqt.logo.png|128px|link=]]</nowiki> || [[File:Eqt.logo.png|128px|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|64px|link=]]
|-
 
| <nowiki>[[File:Eqt.logo.png|16px|link=]]</nowiki> || [[File:Eqt.logo.png|16px|link=]]
 
 
|}
 
|}
 
{| class="wikitable"
 
|-
 
! Wiki Text !! Result
 
|-
 
| <nowiki>[[File:QB_cube.svg|1000px|link=]]</nowiki> || [[File:QB_cube.svg|1000px|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:QB_cube.svg|16px|link=]]</nowiki> || [[File:QB_cube.svg|16px|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 ==
 
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
 
<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).
 
  
 
== Reference ==
 
== Reference ==
Line 76: Line 52:
  
 
[[Category:Wiki]]
 
[[Category:Wiki]]
[[Category:Graphics]]
 
[[Category:Logo]]
 

Revision as of 11:43, 27 January 2016