GIF: Transparency error

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
imagewinter
Posts: 15
Joined: 2008-02-20T16:03:49-07:00

GIF: Transparency error

Post by imagewinter »

In the original GIF animation, there is no transparancy. But when played by imagemagick, there is transparency in parts of the picture.

Why does this happen?

By the way, why does it take so long to load a GIF animation in imagemagick? While it loads instantly in a browser?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: GIF: Transparency error

Post by anthony »

How are you displayting a GIF animation???

Display displays the image frames AS IS.

Animate displays them with the right disposals and timings needed for a GIF animation.

Also IM takes its time to read and completely parse the image. It was never built for speed as that would remove its 'general' usage for all image formats. Display also adds a 2 second minimum delay to each frame, WHY because it is displaying images and slideshows. It is not designed for displaying GIF animations!

Whcih brings us back to... use animate.

As "Bob the Builder" likes to say. Use the right tool for the job!

See IM Examples, display and animate
http://imagemagick.org/Usage/basics/#display
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
imagewinter
Posts: 15
Joined: 2008-02-20T16:03:49-07:00

Re: GIF: Transparency error

Post by imagewinter »

How are you displayting a GIF animation???
With 'animate' of course.

When the animation starts to play, parts of the animation becomes transparent where there is suppose to have color.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: GIF: Transparency error

Post by anthony »

Then either the GIF animation is BAD (a very common occurance), or it is designed to work on a display so as to allow the background to be visible.

Can you give us a link to it so we can examine it?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply