imagemagick

Bradley Giesbrecht brad at pixilla.com
Wed Dec 30 15:17:55 PST 2009


On Dec 30, 2009, at 2:49 PM, Xin Liu wrote:

> I was the one who posted the problem that ImageMagick did not convert
> pdf to eps nicely. I tried to modify delegates.xml as you suggested,
> but it seems to me that the modification does not affect ImageMagick:
> for instance, I deleted the entry about converting pdf to eps, but the
> "convert" command did not complain about not finding a delegate.
>
> However, from delegate.xml I find that I don't really need ImageMagick
> to convert pdf to eps. I just copy the gs command in the delegate
> entry to a shell script, and it works. Thanks for the hint!
>
> Best
> Regards,
>
> Xin Liu

Your welcome. I ended up just executing gs as well. I was wanting to  
make png thumbnails of all kinds of uploads (commercial printer) and  
it was easier and faster to grab the first page of a pdf with gs the  
ImageMagick which was using gs anyways. GS is pretty cool as is  
ImageMagick.

// Brad

> On Wed, Dec 30, 2009 at 5:05 PM, Bradley Giesbrecht  
> <brad at pixilla.com> wrote:
>> I noticed someone writing about imagemagick and remembered  
>> something that
>> took me an hour or so to figure out.
>>
>> At the time the MacPorts ImageMagick port did not find /opt/local/ 
>> gs for
>> converting pdf's and ai files. I think that's what I was doing.
>>
>> I ended up needing to edit
>> "/opt/local/lib/ImageMagick-6.5.8/config/delegates.xml" and fix the  
>> path to
>> gs (GhostScript).
>>
>> This may have been fixed or maybe I was doing something weird.
>>
>> I think the conversion worked from the command line but php5's  
>> Imagick
>> didn't find gs which kinda makes sense. I couldn't figure out how  
>> to alter
>> php5/Imagick's environment to have it find gs so I just fixed the  
>> paths in
>> /opt/local/lib/ImageMagick-6.5.8/config/delegates.xml.
>>
>> Maybe this will help someone.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20091230/435e6174/attachment.html>


More information about the macports-users mailing list