Command Line Processing: Convert -crop Output File Name

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jmatozzi

Command Line Processing: Convert -crop Output File Name

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Post Reply