Crop parameters for batch transformations

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
bamendt
Posts: 5
Joined: Sun Dec 03, 2006 5:32 pm

Crop parameters for batch transformations

Post by bamendt »

I would like to batch convert JPG files and crop them to a specific size with the cropped portion of the image coming from the center of the image. When I input Width and Height parameters, the image is cropped starting in the upper left corner.

For example, I want to batch crop all images to 800 x 600:
Original image is 600 x 1000: crop 100 from top and 100 from bottom
Original image is 600 x 1200: crop 200 from top and 200 from bottom
Original image is 1000 x 1000: crop 100 from left, 100 from right, 200 from top, and 200 from bottom

How do I set the Crop parameters to do this for a batch transformation?
bamendt
Posts: 5
Joined: Sun Dec 03, 2006 5:32 pm

Post by bamendt »

My example had the wrong values. Corrected values are:
Original image is 600 x 1000: crop 200 from top and 200 from bottom
Original image is 600 x 1200: crop 300 from top and 300 from bottom
Original image is 1000 x 1000: crop 100 from left, 100 from right, 200 from top, and 200 from bottom
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

bamendt wrote:My example had the wrong values. Corrected values are:
Original image is 600 x 1000: crop 200 from top and 200 from bottom
Original image is 600 x 1200: crop 300 from top and 300 from bottom
Original image is 1000 x 1000: crop 100 from left, 100 from right, 200 from top, and 200 from bottom
Perhaps you can use canvas resize for that...
Pierre.
bamendt
Posts: 5
Joined: Sun Dec 03, 2006 5:32 pm

Post by bamendt »

Resize canvas worked for this task. Thank you!
Post Reply