Last modified: 2009-11-28 04:43:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18265, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16265 - Enabling apiThumbCacheExpiry causes SVGs to output SVG thumbs
Enabling apiThumbCacheExpiry causes SVGs to output SVG thumbs
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Chad H.
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-06 22:55 UTC by MZMcBride
Modified: 2009-11-28 04:43 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2008-11-06 22:55:49 UTC
When apiThumbCacheExpiry is set to a non-zero value, the output created using APIForeignRepo with an SVG is:

<img alt="To laze is divine." src="http://wiki.example.com/wiki/files/commons/commons/Lazy_sleeping_barnstar.svg/500px-Lazy_sleeping_barnstar.svg" width="500" height="500" border="0" />

When apiThumbCacheExpiry is set to 0 (disabling it), the output created using APIForeignRepo with an SVG is:

<img alt="To laze is divine." src="http://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Lazy_sleeping_barnstar.svg/500px-Lazy_sleeping_barnstar.svg.png" width="500" height="500" border="0" />

Disabling apiThumbCacheExpiry uses the PNG thumbs from the foreign repo while enabling cache creates local thumbs that are not converted to PNG.
Comment 1 Chad H. 2008-11-08 17:34:57 UTC
Fixed in r43297. Turns out I was manually constructing the filename based on what I assumed to be the standard (width-name-extension), forgetting that some things get turned to PNG (like SVGs, in this case). Now we use the same file name as the remote site.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links