Page 1 of 1

Posted: 2006-09-24T19:10:26-07:00
by anthony
That page you refer to gives all the info you need.

Crop the image in two using

Code: Select all

   convert input.png -crop 50x100%+0+0  +repage left_page.png
   convert input.png -gravity East -crop 50x100%+0+0  +repage right_page.png
trim however is a problem. First you have a dark edge around the page that will interfer, so use -shave to remove say 20 pixels or so.

Next you are using a bitmap image (1 bit grey), as such you will probbaly need to use a blurred trim technique (perhaps with a -despeckle) so your trim ignores small pixels clumps and trim to the larger clumps of pixels.

Note also that with -trim your final page images may be different sizes.

PS: you may have been better off using a greyscale rather than bitmap scan of the book.