Convertion animated GIF creates black pixels.

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
lorcap
Posts: 2
Joined: 2011-11-16T16:48:03-07:00
Authentication code: 8675308

Convertion animated GIF creates black pixels.

Post by lorcap »

Hi!
This is my original animated GIF.

After conversion:

Code: Select all

> convert.exe orig.gif %04d.jpg
output images covered with black pixels.
Here is 0001.jpg for example.

Why this happening?

Code: Select all

> identify.exe orig.gif
1321211391814.gif[0] GIF 512x288 512x288+0+0 8-bit PseudoClass 256c 1.344MB 0.000u 0:00.000
1321211391814.gif[1] GIF 512x288 512x288+0+0 8-bit PseudoClass 256c 1.344MB 0.000u 0:00.046
...
1321211391814.gif[25] GIF 512x288 512x288+0+0 8-bit PseudoClass 256c 1.344MB 0.031u 0:00.296

> convert.exe -version
Version: ImageMagick 6.7.3-6 2011-11-10 Q16 http://www.imagemagick.org Features: OpenMP
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convertion animated GIF creates black pixels.

Post by fmw42 »

It appears to be due to your gif animation optimization? this works for me by adding -coalesce

convert orig.gif -coalesce orig_%d.jpg
lorcap
Posts: 2
Joined: 2011-11-16T16:48:03-07:00
Authentication code: 8675308

Re: Convertion animated GIF creates black pixels.

Post by lorcap »

Thanks, fmw42!
With -coalesce it's works fine.
Post Reply