Page 1 of 1

Command Line Processing: Convert -crop Output File Name

Posted: 2009-01-13T15:20:52-07:00
by jmatozzi
I am a new user of Magick. I believe this is the best forum to post this question. If not, please direct me to the appropriate forum.

I am using the command line processing command convert as follows:

convert 16141869_cutprofile.jpg -crop "700X500" 16141869_cutprofile.jpg

Instead of the output being 16141869_cutprofile.jpg, it is 16141869_cutprofile-0.jpg.

Is there some way to prevent the command from giving the file a different name?

Thanks,

John

Re: Command Line Processing: Convert -crop Output File Name

Posted: 2009-01-13T17:50:17-07:00
by fmw42
jmatozzi wrote:I am a new user of Magick. I believe this is the best forum to post this question. If not, please direct me to the appropriate forum.

I am using the command line processing command convert as follows:

convert 16141869_cutprofile.jpg -crop "700X500" 16141869_cutprofile.jpg

Instead of the output being 16141869_cutprofile.jpg, it is 16141869_cutprofile-0.jpg.

Is there some way to prevent the command from giving the file a different name?

Thanks,

John

convert 16141869_cutprofile.jpg -crop "700X500+0+0" +repage 16141869_cutprofile.jpg

See http://www.imagemagick.org/script/comma ... s.php#crop about single image vs multi-image cropping.

Also

http://www.fmwconcepts.com/imagemagick/ ... .php#crop2