Topic on Project:Support desk

Thumbnailing fails on large PNG file

3
Subfader (talkcontribs)

I have this large PNG file in my wiki and thumbs cannot be created:

"Error creating thumbnail: Invalid thumbnail parameters"

Nothing wrong with the thumb parameters. Normal files work fine.

The problems seems to be the raw pixel ammount (4,961 × 3,508 px).

I use ImageMagick and I have set $wgMaxShellMemory to 1 GB normally and now for testing even 2 GB.

There are also no errors in PHP logs or wgDebugLogFile.

Nothing helps. Since it works here I wonder what I do wrong :/

TheDJ (talkcontribs)

Manual:$wgMaxImageArea might be another reason.

Also, Wikipedia actually uses VIPS for scaling such large images, because of memory limitations that imagemagick has. It's a little under documented unfortunately :(

Subfader (talkcontribs)

Thanks, raising it to 3.75e7 did its job. Not sure what other values are correct.

The error message should be clear and the upload form should warn or even refuse file beyond $wgMaxImageArea. > Worth a bug ticket?

Reply to "Thumbnailing fails on large PNG file"