Page 1 of 1
gif images appear wrongly in firefox
Posted: 2009-10-08T12:35:00-07:00
by rgrig
An GIF generated by ImageMagick looks wrong in Firefox 3.0.14 on Ubuntu 9.04: It's supposed to be trimmed but it takes lots of space, and has some spurious black box. The same file looks OK if viewed with 'display' or with 'eog'. The file was produced with the command:
The version is "ImageMagick 6.4.5 2009-06-04 Q16 OpenMP".
If I generate a png instead of a gif it works.
Is this a problem in Firefox or in ImageMagick?
Here is the image:
.
Re: gif images appear wrongly in firefox
Posted: 2009-10-08T12:36:47-07:00
by magick
Try this:
convert foo.pdf -trim +repage foo.gif
Re: gif images appear wrongly in firefox
Posted: 2009-10-08T19:54:09-07:00
by anthony
Firefox is broken. v3.5 does this. The GIF image is correct, but firefox displayes it wrong.
However you don't seem to want the virtual canvas, so using +repage to remove the virtual canvas will fix your specific problem.
I reported the GIF issue to the firefox bugs list...
GIF with larger "Logical screen: Width and Height displays incorrectly
https://bugzilla.mozilla.org/show_bug.cgi?id=487562
I even had others confirm the bug, but firefox developers have been unresponsive.
In an animation only the first image goes wrong. If the first image fully defines the canvas then there is no problems.
Re: gif images appear wrongly in firefox
Posted: 2009-10-09T06:15:41-07:00
by rgrig
+repage works. Thanks.
anthony, thanks for the explanation.