Command Line Processing: Convert -crop Output File Name

Discuss the conjure program and the Magick Scripting Language (MSL) here. MSL is an XML-based wrapper to the ImageMagick image-processing functions.
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
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

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

Post by el_supremo »

Change the -crop argument to "700x500+0+0" so that it only crops one piece at a specific location (0,0).

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
jmatozzi

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

Post by jmatozzi »

Thank you. That worked perfectly.

John
Post Reply