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?
GIF: Transparency error
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: GIF: Transparency error
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
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/
https://imagemagick.org/Usage/
-
- Posts: 15
- Joined: 2008-02-20T16:03:49-07:00
Re: GIF: Transparency error
With 'animate' of course.How are you displayting a GIF animation???
When the animation starts to play, parts of the animation becomes transparent where there is suppose to have color.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: GIF: Transparency error
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?
Can you give us a link to it so we can examine it?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/