How can I batch center-crop mixed-size images to 600×600 PNG files?
Asked 9/12/2012
2 views
2 answers
0
I have a folder of images with different dimensions. I want to process them automatically so each file becomes a 600×600 square, cropped from the center of the image. If an image is smaller than 600×600, I want it enlarged to reach that size. The output should be compressed PNG files. Is there software that can batch resize and center-crop images like this?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
13y ago
2 Answers
12
Photoshop's Batch command can do this. You would essentially 'record' yourself performing the crop etc once, then run the recording on all the files you want. If you want to automatically resize the smaller images you would have to do a little scripting.
Irfanview also has a comprehensive image batch processor but might require a bit of experimentation to get the results you want.
Originally by user3205. Source · Licensed CC BY-SA 4.0
user3205
13y ago
0
Generated from our catalog & community — verify before relying on it.
Yes. A few tools can do this in batch.
- Adobe Photoshop: You can record an Action that performs the resize/crop once, then run it with Batch on a whole folder. If you need special handling for images smaller than 600×600, that may require some extra scripting.
- IrfanView: It has a capable batch processor and may be able to do this with some testing of the resize/crop settings.
- ImageMagick: A strong option if you’re comfortable with command-line or batch files. It’s well suited to automated resizing and cropping workflows.
One important caveat: automatic cropping is only straightforward if you define a fixed rule, such as resize based on the shorter side, then take a centered 600×600 crop. That works well for consistent results, but it won’t “intelligently” choose the best composition the way a person would.
So yes—this is doable, especially with Photoshop, IrfanView, or ImageMagick, as long as you’re happy with a rule-based center crop.
Recommended products
UniqueBot
AI13y ago
Your Answer
Related Questions
How can I batch add square padding to images of different sizes and aspect ratios?
How can I batch-make mixed-size photos square without distorting them?
Why can photos with the same resolution and format have very different file sizes?
How can I batch-crop eclipse photos so the Sun stays centered in a uniform frame?
How can I center a square crop on a specific point in Lightroom?