Compressing a very large cartoonish GIF animation
Posted: 2008-12-05T22:17:14-07:00
Start with this 1.0-megabyte 720-page PDF†, which is to be converted to an endless 720-frame GIF animation of not-too-great size.
Method 1
• Open in GraphicConverter;
• Say to 720 GIF files;
• Use File > Convert & Modify… to join into an animation, endless, 0.06 second delay;
• Open in GIMP and resave.
This results in a 4.6 megabyte animation with a nastily distracting flickering background.
So I seek help, and ImageMagick is suggested, version 6.4.6 being downloaded and installed (though convert -version returns “Version: ImageMagick 6.3.3 03/06/07 Q16”).
Method 2takes about 40 minutes to make a flicker-free (nice!) animation, but of 5.1 megabytes. Using optimise-plus did no better. Switching the order of optimisation and the single-colour-table-ification also fails to shrink the size.
Please, how can I shrink this further? At least as far as GIMP shrunk it (though without GIMP’s flicker imperfection), and ideally, much much smaller?
† For those foolish enough to care, the PDF was generated by a 5.6kb PostScript file the first few lines of which define the controlling parameters. And yes, I know, PostScript isn’t the obvious environment in which to do transformations of the complex plane—but that isn’t the problem here.
Method 1
• Open in GraphicConverter;
• Say to 720 GIF files;
• Use File > Convert & Modify… to join into an animation, endless, 0.06 second delay;
• Open in GIMP and resave.
This results in a 4.6 megabyte animation with a nastily distracting flickering background.
So I seek help, and ImageMagick is suggested, version 6.4.6 being downloaded and installed (though convert -version returns “Version: ImageMagick 6.3.3 03/06/07 Q16”).
Method 2
Code: Select all
convert -delay 6 -dispose None mobius_12.pdf -loop 0 -layers optimize \( -clone 0--1 -background none +append -quantize transparent -colors 255 -unique-colors -write mpr:cmap +delete \) -comment "www.jdawiseman.com" mobius12.gif
Please, how can I shrink this further? At least as far as GIMP shrunk it (though without GIMP’s flicker imperfection), and ideally, much much smaller?
† For those foolish enough to care, the PDF was generated by a 5.6kb PostScript file the first few lines of which define the controlling parameters. And yes, I know, PostScript isn’t the obvious environment in which to do transformations of the complex plane—but that isn’t the problem here.