Page MenuHomePhabricator

Error creating thumbnail: Image was not scaled, is the requested width bigger than the source?
Closed, ResolvedPublic

Description

Result:
"Error generating thumbnail

Error creating thumbnail: Image was not scaled, is the requested width bigger than the source?"

Expected result:
15px thumbnail of the 16×16 image.

That image worked before, but the thumb itself had probably been created a long time ago.


Version: unspecified
Severity: normal
URL: http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif

Details

Reference
bz20312

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 10:54 PM
bzimport set Reference to bz20312.
bzimport added a subscriber: Unknown Object (MLST).
brion added a comment.Aug 19 2009, 7:46 PM

Merging of bug 16451 fixes to deployment should help fix this up...

https://bugzilla.wikimedia.org/show_bug.cgi?id=16451
says the solution for Wikimedia sites is to remove the following 2 lines from CommonSettings.php

// Disable server-side GIF scaling
$wgMediaHandlers['image/gif'] = 'BitmapHandler_ClientOnly';

CommonSettings.php is linked from here:
http://noc.wikimedia.org/conf

See:
http://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php

See also the long discussion thread about animated GIF resizing linked in the table of contents here in the Common Graphics village pump:
http://commons.wikimedia.org/wiki/Commons:Graphics_village_pump#toc

The Commons thread says that system administrators can edit CommonSettings.php to remove the 2 lines. See:
http://meta.wikimedia.org/wiki/System_administrators#List

Can someone please contact some system administrators? I don't use IRC. Andrew Garrett provided the fix for the animated GIF scaling problem according to
https://bugzilla.wikimedia.org/show_bug.cgi?id=16451

Can he remove the 2 lines from CommonSettings.php? He is listed as a system administrator on the Wikimedia list. Can any system administrator remove the 2 lines from CommonSettings.php? Please do so.

Wikia GIF scaling is working. Does this mean it will also work on Wikimedia sites?

I searched Wikia.com for animated GIFs:
*http://www.google.com/search?q=site%3Awikia.com+animated+gif

Here are some results of that search:
*http://halo.wikia.com/wiki/Category:Animated_Gifs
*http://tinierme.wikia.com/wiki/Action_items

Compare the thumbnail and full-size versions of the images. GIF scaling is working. For example:
*http://halo.wikia.com/wiki/File:1217685012_Reallyhighskyjack.gif - 1.55 megabytes.
*[http://images4.wikia.nocookie.net/halo/images/thumb/b/b5/1217685012_Reallyhighskyjack.gif/120px-1217685012_Reallyhighskyjack.gif thumbnail of same image] at 175 kilobytes.

(In reply to comment #3)

https://bugzilla.wikimedia.org/show_bug.cgi?id=16451
says the solution for Wikimedia sites is to remove the following 2 lines from
CommonSettings.php
// Disable server-side GIF scaling
$wgMediaHandlers['image/gif'] = 'BitmapHandler_ClientOnly';

I tried this on testwiki and it didn't work: http://test.wikipedia.org/wiki/File:Neue_Gedichte_%28Heine_1852%29_A_003.gif
Apparently it's breaking somewhere but I don't know where.

(In reply to comment #5)

(In reply to comment #3)

https://bugzilla.wikimedia.org/show_bug.cgi?id=16451
says the solution for Wikimedia sites is to remove the following 2 lines from
CommonSettings.php
// Disable server-side GIF scaling
$wgMediaHandlers['image/gif'] = 'BitmapHandler_ClientOnly';

I tried this on testwiki and it didn't work:
http://test.wikipedia.org/wiki/File:Neue_Gedichte_%28Heine_1852%29_A_003.gif
Apparently it's breaking somewhere but I don't know where.

Never mind, I'm an idiot, it does work. Enabled on all wikis now.

Repurposing bug back to original report per Tim.

See also http://commons.wikimedia.org/wiki/Category:Saint_Alexander_Nevsky_Church_(Peterhof) - many files without thumbinail! (all uploaded 2011-09-14, 19:17)

Please fix this annoying problem.

aaron added a comment.Sep 21 2012, 5:51 PM

(In reply to comment #8)

See also
http://commons.wikimedia.org/wiki/Category:Saint_Alexander_Nevsky_Church_(Peterhof)

  • many files without thumbinail! (all uploaded 2011-09-14, 19:17)

Please fix this annoying problem.

Is that even related to this bug? Sounds more like bug 39697.

A-a-a... Long names! I'm sorry, possible this true bug 3967. Thanks!

Bryan.TongMinh wrote:

Working now?

Jup, seems to work fine.

Cannot reproduce either with given examples. Closing report as WORKSFORME but please reopen (and provide a specific example) if this problem happens again.

  • This bug has been marked as a duplicate of bug 39697 ***