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
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 Hartley wrote:
The error message I get now is slightly different:
Error creating thumbnail: convert: Memory allocation failed
http://www.mediawiki.org/wiki/Manual:$wgMaxShellMemory
`/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.
It's expected. Inside thumbs/ folder, filenames are used as folders to hold their thumbnails.
Platonides wrote:
Henry Hartley wrote:
The error message I get now is slightly different: Error creating thumbnail: convert: Memory allocation failed
That seems to have done the trick. The documentation on that page is pretty sparse and doesn't mention anything except "using Batik to render SVG graphics on some systems" so I don't think I ever would have found it without your help. Thanks. I've added a sentence to the documentation which might make it show up in searches.
`/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.
It's expected. Inside thumbs/ folder, filenames are used as folders to hold their thumbnails.
I didn't see the /thumb/ in that path, which is what threw me. I was thinking that was the path to the main image. I saw what I expected rather than what was there. Thanks for pointing it out.
And once again, thank you very much for solving my problem. It's much appreciated.
Date: Mon, 22 Jun 2009 11:21:32 -0400 From: henry@dotrose.com To: MediaWiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Error creating thumbnail: Invalid thumbnail parameters
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
-- Henry
Maybe the compression of your image is too hight or particular to imagemagick create tumbnail _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_________________________________________________________________ Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows LiveĀ ? Lancez-vous ! http://www.microsoft.com/windows/windowslive/default.aspx
mediawiki-l@lists.wikimedia.org