Help - Search - Members - Calendar
Full Version: Problems with "crop" argument for /usr/bin/convert
Hostony Board > General Support > General Support
jmgold
Hi All,

I'm trying to use /usr/local/bin/convert to crop an image. Here is the command I'm using:

CODE
/usr/local/bin/convert -colors 32 -crop '200x200+200+200' /tmp/syshorz.gif /home/monozygo/www/images/syshorz_s_crop.gif > /dev/null 2> /dev/null


No matter what I set the crop parameters to, the resulting image is an empty white image.

A similar command using resize instead of crop seems to work fine:

CODE
/usr/local/bin/convert -colors 32 -geometry '200x300' /tmp/syshorz.gif /home/monozygo/www/images/syshorz_s.gif > /dev/null 2> /dev/null


You can see the results of the two commands here:

http://www.monozygotic.com/traff.cgi

Do you know what I'm doing wrong? Thanks! -Joe
jmgold
Nevermind!

For some reason the cropped image doesn't work in Firefox. Try the above link in IE, and the image works perfectly.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here