Page 1 of 1

-trim works on my machine but not the server

Posted: 2009-01-08T08:25:15-07:00
by Brade
I've looked online and tried a bunch of stuff to solve this problem but can't, so here goes:
I am simply converting an EPS file to a PNG file and I want to trim the dead space (which for most of the EPS files is transparent background). It works fine on my macbook pro running the latest imagemagick I got via macports. But our server (which upgraded to the latest version when I told them about my issue) still does not do the trim. This is the basic command I'm running:

convert test.eps -trim -resize 300x100 -depth 8 -gravity center -extent 300x100 test_fill.png

I've uploaded some ZIP files of the correct results vs. the incorrect so you can see my problem. I figured someone here may have come across a problem like this before. I've tried adding +repage after -trim but that did nothing. Any ideas??

http://www.mediafire.com/file/rmf1ydvjy ... laptop.zip
http://www.mediafire.com/file/enmzotdti ... server.zip

Re: -trim works on my machine but not the server

Posted: 2009-01-08T19:59:41-07:00
by anthony
Check that the version numbers of IM is correct. typically a Server uses a very very OLD version of IM unless some user complains.

Re: -trim works on my machine but not the server

Posted: 2009-01-09T06:19:03-07:00
by Brade
Yep, I did complain so they are using a new version ;) but still I have issues.

My laptop:
Version: ImageMagick 6.4.7 2008-12-17 Q16 http://www.imagemagick.org

Server:
Version: ImageMagick 6.4.8 2009-01-07 Q16 http://www.imagemagick.org


Like I said, even though my laptop is one point behind, it is the one that works how I want.