Page 1 of 1

auto-crop multiple old photographs from scanned image?

Posted: 2008-03-04T00:53:49-07:00
by dsj
[reposting here from developer forum on moderator's request]

Im attempting a project that might prove to be insane - scanning in all my old paper photographs.
you know the drill... theres typically 3 to 5 images that can fit on my flatbed scanner and they
vary in size and position in the scanned image.

Id like to be able to programatically auto-crop the individual images out of the larger scan image.
sample image: http://jonespix.com/imagemagick_example ... an0058.jpg

has anyone here done such a thing? can I use imagemagick APIs to do it? I can code but Im not
familiar with image processing techniques (yet). any help pointing me in the right direction would
be greatly appreciated - i really dont want to manually crop them one by one in photoshop!

thanx.
.dsj.

ps - a secondary goal would be to auto-detect orientation and rotate them programatically if
its possible. being right 50%+ of the time is still a help. anyone ever done this? again, these are
scanned images so no EXIF info to help.

Re: auto-crop multiple old photographs from scanned image?

Posted: 2008-03-04T13:45:16-07:00
by fmw42