ImageMagick convert problems

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
Plymouth

ImageMagick convert problems

Post by Plymouth »

I need to convert various images to the old DEGAS .pi3 file format

The ImageMagick convert tool, should apparently do this. However, when I run convert on a file, although another file with the .pi3 extension is sometimes produced, the format of said new file has NOT really changed - its still the old file "in disguise" as a DEGAS file.

The command I use is...

convert ~/filename.pnm ~/filename.pi3

Sometimes, rather than outputting a duff file, the following text is output...

convert: unable to open module file `/usr/lib/ImageMagick-6.2.4/modules-Q16/coders/pi3.la': No such file or directory.

Could somebody please expain what I'm doing wrong please?

TIA
robrowne

Re: ImageMagick convert problems

Post by robrowne »

Hello,
I'm having a similar problem where I use

convert file.pdf new_file.jpeg

what happens is that the new_file.jpeg is a copy of the pdf file with the extension changed to .jpeg.

cheers
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: ImageMagick convert problems

Post by Bonzo »

I pressume Imagemagick is installed and working OK robrowne. Otherwise it could be finding another program to just change the filename ?
robrowne

Re: ImageMagick convert problems

Post by robrowne »

yes it is, but I found out that I need to install some support libraries for jpeg's
so right now it's uninstall and re-make with the required libraries!
robrowne

Re: ImageMagick convert problems

Post by robrowne »

Hey,
I sorted my problem.
I was missing some files and libraries.
I needed to do a yum install libtools

and get these library files:
jpegsrc.v6b.tar.gz
libpng-1.0.6.tar.gz
libtiff-lzw-compression-kit-1.1.tar.gz
tiff-v3.5.5.tar.gz

I ended up having issues trying to compile ImageMagick with tiff, so I omitted it ./configure -without-tiff

These posts might help:
http://www.randycullom.com/chatterbox/a ... _imag.html
http://www.photopost.com/forum/photopos ... rror1.html

I hope some of this stuff helps you Plymouth with your issue
Laters
robrowne

Re: ImageMagick convert problems

Post by robrowne »

hey Plymouth,

I couldn't see support for .pi3

The list of supported files can be found at http://www.imagemagick.org/www/formats.html
What you probably need to do is track down the libraries for DEGAS conversion, uninstall Imagemagick, recompile Imagemagick with DEGAS linked, and install again!
That's pretty much what I had to do to add .jpeg support.
Post Reply