Trying to convert from postscript to gif

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
cohara
Posts: 4
Joined: 2014-02-26T01:22:00-07:00
Authentication code: 6789

Trying to convert from postscript to gif

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Trying to convert from postscript to gif

Post by snibgo »

For ps (Postscript) you need Ghostscript.
snibgo's IM pages: im.snibgo.com
cohara
Posts: 4
Joined: 2014-02-26T01:22:00-07:00
Authentication code: 6789

Re: Trying to convert from postscript to gif

Post 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?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Trying to convert from postscript to gif

Post 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?
User avatar
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

Post by fmw42 »

Code: Select all

convert -version
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.

Code: Select all

gs --version
9.06
cohara
Posts: 4
Joined: 2014-02-26T01:22:00-07:00
Authentication code: 6789

Re: Trying to convert from postscript to gif

Post 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!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Trying to convert from postscript to gif

Post 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
snibgo's IM pages: im.snibgo.com
cohara
Posts: 4
Joined: 2014-02-26T01:22:00-07:00
Authentication code: 6789

Re: Trying to convert from postscript to gif

Post by cohara »

Thank you!

Maybe Ill just start downloading all the delegates until it works!

Thanks,
Ciara
User avatar
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

Post 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
Post Reply