On Fri, Jun 29, 2001 at 08:36:44PM +0200, Renaud MICHEL wrote:
> Le Jeudi 28 Juin 2001 12:52, vous avez écrit :
> > ImageMagic can create small files (only 30% bigger than the original) if
> > you convert into a level 2 Postscript file (the default is a level 1 file):
> >
> > convert file.png eps2:file.eps
>
> Very interesting, but when I tried it with a gif file convert said me that
> LZW library is not avaible, but it works fine if I convert the gif file to
> png or jpg. Any idea of what happened?
Your version of imagemagick was compiled without support for the LZW
compression algorithm due to the patent on the algorithm.
(although it is weird that convert gave an error message and didn't use a
different compression algorithm).
You can either compile imagemagick yourself, or use a different compression
algorithm:
Use either
convert -compress RunlengthEncoded file.png eps2:file.eps
or
convert -compress Zip file.png eps2:file.eps
The latter gives smaller file, but the zip compression is not part
of the level 2 standard, so it might not print if you try to print on a
Postscript printer (it is supported by ghostscript).
> Anyway, why not using level 2 postscript when converting raster images in the
> external material?
Good question. But if running 'convert file.png eps2:file.eps' doesn't work
on some machines, then we should use convert -compress RunlengthEncoded.