Page 1 of 1

Cropping and not resizing

Posted: 2009-04-13T12:20:36-07:00
by EdwardOwen
I'm a brand new user to this program, and could use some help.

I'm already downloading a series of radar data files from the National Weather Service, merging them to a standard background, then using an AVI constuction program to make a simple loop of about 25 frames.

I'm using a command line within a batch file to merge the two graphics files, then saving them under another name. Works fine.

The problem is, the graphics files I'm downloading are 650X550, and I need to crop them down to 640X480. I would prefer to do this from the center of the picture but I'll take whatever I can get.

On a secondary note, once I get this going, I'll want to crop to an even smaller section of the center of the frames, then save it as 640X480.

I'll be glad to study up on this, but so far the documentation has confused me as all I can figure out how to do is to resize, keeping the aspect ratio, which won't work for my application.

Thanks!
ed

Re: Cropping and not resizing

Posted: 2009-04-13T12:49:33-07:00
by el_supremo
to crop the centre, try this:

Code: Select all

convert input_file -gravity center  -crop 640x480+0+0 +repage output_file
Pete

Re: Cropping and not resizing

Posted: 2009-04-13T12:53:25-07:00
by EdwardOwen
Thanks Pete! I'll try it right away.

Re: Cropping and not resizing

Posted: 2009-04-13T13:22:27-07:00
by fmw42

Re: Cropping and not resizing

Posted: 2009-04-13T13:28:27-07:00
by EdwardOwen
Thanks for the suggestions. I'll check up on it. The command line above isn't causing my file to save properly. It's not leaving anything when I run it. I double checked all the parameters, but something isn't working right.

Thanks again.

Re: Cropping and not resizing

Posted: 2009-04-13T13:52:37-07:00
by EdwardOwen
Got it!
Had an error in my directory command.
Thanks again.