We are getting a thumbnailer error on a png file of 16 Mpx. This error is: "Error creating thumbnail: Invalid thumbnail parameters". It appears there is an upper bound limitation somewhere, since Wikipedia has a similar problem (e.g., see http://en.wikipedia.org/wiki/ Category:Old_Ordnance_Survey_map_images).
Is this a hard limit due to limitations of Imagemagick or is there a global that controls the upper bound on image size that the thumbnailer can handle?
Dan Nessett wrote:
We are getting a thumbnailer error on a png file of 16 Mpx. This error is: "Error creating thumbnail: Invalid thumbnail parameters". It appears there is an upper bound limitation somewhere, since Wikipedia has a similar problem (e.g., see http://en.wikipedia.org/wiki/ Category:Old_Ordnance_Survey_map_images).
Is this a hard limit due to limitations of Imagemagick or is there a global that controls the upper bound on image size that the thumbnailer can handle?
http://www.mediawiki.org/wiki/Manual:$wgMaxImageArea
ImageMagick isn't limited AFAIK. If it has not enough machine memory, it will start using files as swap (or perhaps the OOM killer gets launched).
On Fri, 21 May 2010 19:32:40 +0200, Platonides wrote:
Dan Nessett wrote:
We are getting a thumbnailer error on a png file of 16 Mpx. This error is: "Error creating thumbnail: Invalid thumbnail parameters". It appears there is an upper bound limitation somewhere, since Wikipedia has a similar problem (e.g., see http://en.wikipedia.org/wiki/ Category:Old_Ordnance_Survey_map_images).
Is this a hard limit due to limitations of Imagemagick or is there a global that controls the upper bound on image size that the thumbnailer can handle?
http://www.mediawiki.org/wiki/Manual:$wgMaxImageArea
ImageMagick isn't limited AFAIK. If it has not enough machine memory, it will start using files as swap (or perhaps the OOM killer gets launched).
Changed the value of $wgMaxImageArea to 2.5e7 and tried again. The error message is eliminated, but the thumbnail is missing (a completely transparent thumbnail is displayed). The base file is a 4kx4k px (15.2 MB) png file. Any idea why Imagemagick fails to produce a valid (600x600 px) thumbnail? If not, any hints how to chase down the problem?
Dan
On Fri, 21 May 2010 18:17:56 +0000, Dan Nessett wrote:
On Fri, 21 May 2010 19:32:40 +0200, Platonides wrote:
Dan Nessett wrote:
We are getting a thumbnailer error on a png file of 16 Mpx. This error is: "Error creating thumbnail: Invalid thumbnail parameters". It appears there is an upper bound limitation somewhere, since Wikipedia has a similar problem (e.g., see http://en.wikipedia.org/wiki/ Category:Old_Ordnance_Survey_map_images).
Is this a hard limit due to limitations of Imagemagick or is there a global that controls the upper bound on image size that the thumbnailer can handle?
http://www.mediawiki.org/wiki/Manual:$wgMaxImageArea
ImageMagick isn't limited AFAIK. If it has not enough machine memory, it will start using files as swap (or perhaps the OOM killer gets launched).
Changed the value of $wgMaxImageArea to 2.5e7 and tried again. The error message is eliminated, but the thumbnail is missing (a completely transparent thumbnail is displayed). The base file is a 4kx4k px (15.2 MB) png file. Any idea why Imagemagick fails to produce a valid (600x600 px) thumbnail? If not, any hints how to chase down the problem?
Dan
To see what happens, I tried to convert the file manually from my command line prompt. The command I used was
convert -thumbnail 600x600 International_Space_Station_Space_Shuttle_Atlantis_Sun_Transit_2010.png thumb.png
It worked perfectly.
Might there be a problem related to the long file name?
Dan Nessett wrote:
To see what happens, I tried to convert the file manually from my command line prompt. The command I used was
convert -thumbnail 600x600 International_Space_Station_Space_Shuttle_Atlantis_Sun_Transit_2010.png thumb.png
It worked perfectly.
Might there be a problem related to the long file name?
I don't think so.
Try increasing the values $wgMaxShellMemory, $wgMaxShellFileSize, $wgMaxShellTime
You can also enable debug and look for the line doTransform:Running custom convert command xxxx to find the exact command that is being run.
On Sat, 22 May 2010 14:02:57 +0200, Platonides wrote:
Dan Nessett wrote:
To see what happens, I tried to convert the file manually from my command line prompt. The command I used was
convert -thumbnail 600x600 International_Space_Station_Space_Shuttle_Atlantis_Sun_Transit_2010.png thumb.png
It worked perfectly.
Might there be a problem related to the long file name?
I don't think so.
Try increasing the values $wgMaxShellMemory, $wgMaxShellFileSize, $wgMaxShellTime
You can also enable debug and look for the line doTransform:Running custom convert command xxxx to find the exact command that is being run.
Thanks. I will try all of these suggestions and report back.
However, I did some research and it appears there is a long-standing (over 3 years) bug that reports problems producing thumbnails for large png files (see https://bugzilla.wikimedia.org/show_bug.cgi?id=9497). This bug is still open, so it is possible I have run up against an unresolved problem.
On Sat, 22 May 2010 16:13:55 +0000, Dan Nessett wrote:
On Sat, 22 May 2010 14:02:57 +0200, Platonides wrote:
Dan Nessett wrote:
To see what happens, I tried to convert the file manually from my command line prompt. The command I used was
convert -thumbnail 600x600
International_Space_Station_Space_Shuttle_Atlantis_Sun_Transit_2010.png
thumb.png
It worked perfectly.
Might there be a problem related to the long file name?
I don't think so.
Try increasing the values $wgMaxShellMemory, $wgMaxShellFileSize, $wgMaxShellTime
You can also enable debug and look for the line doTransform:Running custom convert command xxxx to find the exact command that is being run.
Thanks. I will try all of these suggestions and report back.
However, I did some research and it appears there is a long-standing (over 3 years) bug that reports problems producing thumbnails for large png files (see https://bugzilla.wikimedia.org/show_bug.cgi?id=9497). This bug is still open, so it is possible I have run up against an unresolved problem.
I tried increasing the values of $wgMaxShellMemory and $wgMaxShellFileSize, first from 102400 to 409600 and then to 819200 (these values are in KB). This did not fix the problem (our wiki is running 1.13.2, so $wgMaxShellTime is unavailable - it was introduced in 1.14). No error message is produced, but the thumbnail is completely transparent with no visible content. So, it appears the bug I mentioned in a previous post is the culprit.
mediawiki-l@lists.wikimedia.org