ImageMagick failing to convert to JPG
Posted
by johnui
on Server Fault
See other posts from Server Fault
or by johnui
Published on 2009-11-23T20:26:19Z
Indexed on
2010/03/17
10:01 UTC
Read the original article
Hit count: 755
imagemagick
|php
Hi:
We recently installed the latest version of ImageMagick onto our Linux server. I seem to be having issues performing the most basic of tasks.
I am running this command line:
/usr/bin/convert /location/to/source/design.ai /location/to/save/output.jpg
Unfortunatly is saves design.jpg as an illustrator file (if I rename the file to output.ai it opens). Even if I do this:
/usr/bin/convert /location/to/source/design.ai -rotate 90 /location/to/save/design.jpg
It rotates the file and saves again as an illustrator document. This happens with all filetypes (e.g. png, bmp, etc...)
It appears ImageMagick cannot figure out what I want it converted to and just saves as the same file type.
Any ideas on fixing this?
Regards:
John
© Server Fault or respective owner