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
Trying to convert from postscript to gif
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Trying to convert from postscript to gif
For ps (Postscript) you need Ghostscript.
snibgo's IM pages: im.snibgo.com
Re: Trying to convert from postscript to gif
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
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?
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?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Trying to convert from postscript to gif
Code: Select all
convert -version
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.
Code: Select all
gs --version
Re: Trying to convert from postscript to gif
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!
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!
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Trying to convert from postscript to gif
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
snibgo's IM pages: im.snibgo.com
Re: Trying to convert from postscript to gif
Thank you!
Maybe Ill just start downloading all the delegates until it works!
Thanks,
Ciara
Maybe Ill just start downloading all the delegates until it works!
Thanks,
Ciara
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Trying to convert from postscript to gif
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
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