Page 1 of 1
Trying to convert from postscript to gif
Posted: 2014-02-26T01:38:00-07:00
by cohara
Hi, I am trying to use ImageMagick to create an animated gif using postscript files. However when I run the convert command I get the: 'no decode delegate for this image format' error. The delegates I have, according to 'convert -list configure' are mpeg and ps. Also the post installation gif creation test works. What delegates do I need, specifically, from this list:
http://www.imagemagick.org/download/delegates/. Their names do not, to my inexperienced eyes, tell me which ones are relevant to me.
I have ImageMagick: 6.8.8-7 Q16 i686, and I'm running it's CentOS 5.7
Thanks,
Ciara
Re: Trying to convert from postscript to gif
Posted: 2014-02-26T02:09:07-07:00
by snibgo
For ps (Postscript) you need Ghostscript.
Re: Trying to convert from postscript to gif
Posted: 2014-02-26T04:49:45-07:00
by cohara
Thanks, I think I have it. I ran 'locate Ghostscript' and it seems to be there...or am I missing something. Should it be listed in delegates?
Re: Trying to convert from postscript to gif
Posted: 2014-02-26T05:30:47-07:00
by Bonzo
I would start with something simple first to prove everything else is working:
1/ Convert some jpg images to an animated gif - it does not matter what the images are it will just prove a point.
2/ Convert a simple pdf to a jpg
What actual code are you using?
Re: Trying to convert from postscript to gif
Posted: 2014-02-26T10:41:12-07:00
by fmw42
Version: ImageMagick 6.8.8-7 Q16 x86_64 2014-02-20
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib cairo fftw fontconfig freetype
gslib jbig jng jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib
should show the list of delegates installed. For Ghostscript it should list gs or gslib.
Then check your version of ghostscript, e.g.
9.06
Re: Trying to convert from postscript to gif
Posted: 2014-02-27T04:54:59-07:00
by cohara
Hi,
I ran gs --version and it returned 8.70. I reinstalled and configured --with-gslib, but the delegates are the same, just mpeg and ps. Is it a path problem? I configured ImageMagick with --prefix=/root/ImageMagick-6.8.8-7.
I've tried converting jpg and png images to gifs and that doesn't work either.
I'm very confused!
Re: Trying to convert from postscript to gif
Posted: 2014-02-27T05:55:27-07:00
by snibgo
I don't know much about the interface to Ghostscript, but for me (IM v6.8.8-7 on Windows 8.1), my delegates don't include gs* but do include ps:
Code: Select all
F:\web\im>%IM%convert -version
Version: ImageMagick 6.8.8-5 Q16 x64 2014-02-08 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib cairo freetype jbig jng jp2 jpeg lcms lqr pangocairo png ps rsvg tiff webp xml zlib
Re: Trying to convert from postscript to gif
Posted: 2014-02-27T06:38:11-07:00
by cohara
Thank you!
Maybe Ill just start downloading all the delegates until it works!
Thanks,
Ciara
Re: Trying to convert from postscript to gif
Posted: 2014-02-27T09:51:43-07:00
by fmw42
IM needs to know where all the delegates are located when you configure IM. All the delegates must be in the same locations. see
http://www.imagemagick.org/script/advan ... #configure
I am on a Mac and use MacPorts to install all my delegates (in /opt), but install IM manually from source. My configure command is
./configure
CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' \
--enable-delegate-build --enable-shared --disable-static --disable-opencl \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf --with-rsvg \
--disable-silent-rules --disable-dependency-tracking --disable-openmp --without-pango \
--with-gs-font-dir=/opt/local/share/ghostscript/fonts/ --with-lqr --with-openjp2