Cropping multiple photos from one image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Dari
Posts: 2
Joined: 2012-05-15T20:31:52-07:00
Authentication code: 13

Cropping multiple photos from one image

Post by Dari »

Hello everyone. ImageMagick was recommended to me because I have a specific problem. I have a bunch of scanned photos I need cropped. Some scanned images have like 6 photos in each image and I'd like to separate all of them, cropped. Can I do this with ImageMagick? TIA.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Cropping multiple photos from one image

Post by fmw42 »

can you post a link to an example? do you mean that one image has 6 different images composite in it such that they have some separation with some relatively constant background (and no overlap of the images)? If so and you are on Linux, Mac or Windows w/cygwin, you can try my script, multicrop, listed below. also what version of IM are you using or have you not installed it yet?
Dari
Posts: 2
Joined: 2012-05-15T20:31:52-07:00
Authentication code: 13

Re: Cropping multiple photos from one image

Post by Dari »

fmw42 wrote:can you post a link to an example? do you mean that one image has 6 different images composite in it such that they have some separation with some relatively constant background (and no overlap of the images)? If so and you are on Linux, Mac or Windows w/cygwin, you can try my script, multicrop, listed below. also what version of IM are you using or have you not installed it yet?
I am scanning images from an album and I'm scanning 6 photos per scan. I would like the program to auto-crop them. I'm on Windows 7 64-bit. I installed the latest 64-bit dynamic version available today.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Cropping multiple photos from one image

Post by fmw42 »

Dari wrote:
fmw42 wrote:can you post a link to an example? do you mean that one image has 6 different images composite in it such that they have some separation with some relatively constant background (and no overlap of the images)? If so and you are on Linux, Mac or Windows w/cygwin, you can try my script, multicrop, listed below. also what version of IM are you using or have you not installed it yet?
I am scanning images from an album and I'm scanning 6 photos per scan. I would like the program to auto-crop them. I'm on Windows 7 64-bit. I installed the latest 64-bit dynamic version available today.

Best I can suggest is to try to convert my multicrop script to window batch script. Or better install Cygwin and use my script directly.

IM does not have any one single function to do what you want as far as I know. That is why I had to develop my bash unix script.

I will defer to any Windows expert who knows otherwise.
Post Reply