Marcus wrote...
| My attempts so far using various methods have resulted in very large
| gifs.  By examing them it appears that each frame is not subtracting
| the previous image correctlty.
|
Of course it will, you are not doing any optimization at all.
The GIF animation you are generating is just each frame in total!

Try   -coalesce   -layers optimize
with the latest IM  or
      -coalesce   -deconstruct
for older IM's for animations that do NOT involve transparency.


"Marcel Wouterse" on  wrote...
| i am not sure what you mean exactly, but u might try:
| 
| convert -dispose previous image_1 image_2 -loop 0 image_out
| 
| Imagemagick does not compress gif's well. You might wanne use gifsicle for
| that:
| 
| gifSicle.exe -b --colors 255 -O2 oie_animation.gif
| 

Actually from my experiments, the latest IM v6.2.6-2 has a better frame
size compression than gificle!!!!

The -deconstruct was never rally designed with GIF optimization in mind,
a new function  "-layers optimize"  now replaces its use in GIF
animation.  -deconstruct now sould only be used for image layer
handling, rather than GIF animations.


In the IM examples gifiscle on a -coalesced  version of 'previous
dispose animation', resulted in a file sized  2523  bytes

But IM  "-layers optimize"  selects the right disposal for the frames,
and without any other special optimization resulted in   1865 bytes.


Basically gifiscle (an many other GIF optimizers) will not try to find
the best disposal setting for the animation.  Figuring out the optimal
dispoal is actually difficult and probably imposible without a lot of
trial and error, but IM can now do this to at least one depth level!

Get the latest IM and try      -layers optimize

Many more optimization functions are comming, as noted on the IM
examples pages.  Stay tuned to...

   http://www.cit.gu.edu.au/~anthony/graphics/imagick6/animations/#optimize

and later example areas, for lots more details.

PS: this is what I have been am working on in my copious (sic) time,
over the last month. and also this month.   Afetr that I am dissapearing
on a european vacation, so I hope to finish before then.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
    SPACE FOR THIS INSERTION IS DONATED BY THE PUBLISHERS AS
    A SERVICE TO THE COMMUNITY      -- John Brunner - "The Sheep Look Up"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to