Page 1 of 1
split one big image into multiple sub images
Posted: 2012-10-01T03:13:49-07:00
by canvas-marked
I have thousands of big images which are scanned from a scanner, with a consistant background (blue), but each big image has multiple small images that I need, currently I have to manually cut each small image using GUI tools and 'save as' options... it's very tedious.
I'm wondering are there any way to automate then entire process such as commandline.
a description is illustrated as below

Re: split one big image into multiple sub images
Posted: 2012-10-01T03:20:51-07:00
by canvas-marked
the final sub-image is ok to be squared , even though some tilting is unavoidable as illustrated above.
if the background color (i.e. blue) can be removed from each sub-image, that would be even better.
Re: split one big image into multiple sub images
Posted: 2012-10-01T10:12:04-07:00
by fmw42
If you are on Linux/Mac or Windows w/Cygwin, see my script, multi-crop at the link below.
converting from blue to black can be done using -fuzz XX% -fill black -opaque blue (or whatever is the exact blue color as hex or rgb), if any is left after the multi-crop
Re: split one big image into multiple sub images
Posted: 2012-10-01T16:53:16-07:00
by canvas-marked
thank you for your prompt reply, and I will try your script and see how it goes.
BTW, you have written so many scripts, the collection is very impressive, Hats-off to you.