gif images appear wrongly in firefox

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
rgrig

gif images appear wrongly in firefox

Post 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:

Code: Select all

  convert -trim foo.pdf foo.gif
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:

Image.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: gif images appear wrongly in firefox

Post by magick »

Try this:

convert foo.pdf -trim +repage foo.gif
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: gif images appear wrongly in firefox

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
rgrig

Re: gif images appear wrongly in firefox

Post by rgrig »

+repage works. Thanks.
anthony, thanks for the explanation.
Post Reply