Advanced Bulk Cropping Please/Urgent

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
Post Reply
steff88
Posts: 2
Joined: 2018-04-19T01:19:19-07:00
Authentication code: 1152

Advanced Bulk Cropping Please/Urgent

Post by steff88 » 2018-04-19T01:25:59-07:00

Hi,

Could someone help us set up a system that would allow us to automatically go through 120.000 images and crop them from square to 4/3 aspect ratio under the following premise?

1. all our images are 1001x1001 pixels and they have products on a pure white background (255.255.255)
2. some products are narrow and cropping would be easy (crop left/right: http://prntscr.com/j7933m) BUT others are not narrow, and cropping left/right would cut into the products (http://prntscr.com/j793cu).
3. ideally the script would run through all the images AND
- IF enough blank canvas exists left and right THEN crop left and right
- If not enough blank canvas exists left and right THEN crop left/right until 20px blank canvas remain both left and right AND add to canvas top/bottom until 4/3 aspect ratio is reached.

We're willing to hire a consultant to help us build this script out.

steff88
Posts: 2
Joined: 2018-04-19T01:19:19-07:00
Authentication code: 1152

Re: Advanced Bulk Cropping Please/Urgent

Post by steff88 » 2018-04-19T02:13:26-07:00

Issue resolved! With ImBatch software. If anyone has this issue i had to apply a 2 step process, 1 autocrop to remove white , 2 resize to 4:3

Post Reply