Page 1 of 1

trim whitespace or "punching out" images

Posted: 2013-01-16T06:57:20-07:00
by arpeggio
Hi Guys,

I've been trying numerous ways to achieve this but just cant seem to even really get started and dont even know if it's possible either!
I'm really hoping someone can help or offer direction pls.
i have 4 photos (usually scenery) on one page. Each photo is separated by a little whitespace.
I want to "punch out" these images and make 4 separate images.

Is this possible? and if so how?

Thank you very much for all inputs.


Re: trim whitespace or "punching out" images

Posted: 2013-01-16T09:14:21-07:00
by snibgo
If you know the dimensions of each photo, or they are the same size, it's quite easy. See

If the photos vary in size, I think you'll need a script to find each whitespace separation. Then use that data to crop out each photo, and trim them.

Re: trim whitespace or "punching out" images

Posted: 2013-01-16T11:57:24-07:00
by fmw42
If your images are well separate by some constant color such as pure white (or close to white) and you are on unix/mac or windows/cygwin, you can use my unix shell script, multicrop, at the link below.

Re: trim whitespace or "punching out" images

Posted: 2013-01-20T22:40:25-07:00
by anthony
Basically it helps us to have an example of what you are working with. We can then experiment ourselves and give you a better solution.