[Mediawiki-l] Error creating thumbnail: Invalid thumbnail parameters

Henry Hartley henry at dotrose.com
Mon Jun 22 16:41:57 UTC 2009


Henry Hartley wrote:
> I've just uploaded a largish GIF image to my wiki and I'm getting an 
> error that says:
> 
>    "Error creating thumbnail: Invalid thumbnail parameters"
> 
> I say largish but it's not really that big a file (4,865 by 3,300 
> pixels, 410 KB). The file uploads without other problem and I was able 
> to manually create a thumbnail at the command line (on the server) using 
> ImageMagick (which is what MW is set to use).
> 
> I couldn't find the phrase "Invalid thumbnail parameters" anywhere on 
> the MediaWiki site. It's not clear from the error what "thumbnail 
> parameters" might be "invalid". Any suggestions what might need to be 
> fixed or adjusted?
> 
> This is MW 1.13.3
> PHP 5.1.6
> MySQL 5.0.45
> ImageMagick 6.2.8.0-4.e15_1.1
> CentOS 5.2

Figuring this would be the first thing suggested, I've just upgraded to 
version 1.15 of MediaWiki. I also changed the $wgMaxImageArea variable 
to something larger than the default value (I set it to 64,000,000 which 
is well over the image area for the file in question, which measures 
16,054,500).

The error message I get now is slightly different:

Error creating thumbnail: convert: Memory allocation failed 
`/path/to/wiki/images/6/69/Countries_11x17.gif'.
convert: missing an image filename 
`/path/to/wiki/images/thumb/6/69/Countries_11x17.gif/800px-Countries_11x17.gif'.

That last bit looks odd since it seems to be trying to use the image 
name as a directory name, but maybe I'm misinterpreting it.

The problem does appear to be related to file size or dimensions since I 
was able to upload an 800x854 pixel version of the file and have a 
thumbnail created without incident. The installation of PHP is set with 
post_max_size and upload_max_filesize both set to 256M and memory_limit 
set to 194M. If there is another PHP setting that I've missed, perhaps 
that's it but those numbers seem plenty big for a file that's only 
410KB. Are there other MediaWiki settings relative to image size that 
might be a problem?

-- 
Henry



More information about the MediaWiki-l mailing list