split double-page spreads into single-page images
Posted: 2012-05-09T19:46:03-07:00
SUMMARY
Q: What is the command that I would use to extract the right-side 52%x100% of an image?
DETAIL
I only use ImageMagick a couple of times a year, so I never get good at it.
Current problem: splitting double-page "spread" images into single pages.
I have received a number of pages from scanned books which are two pages wide.
I want to split them into two pages, left and right.
The binding of the book isn't always in the center, so I want there to
be some overlap. I'll fine-tune the cropping by hand later.
I can successfully extract the left page image using
$ convert spread.jpg -crop 52%x100%+0+0 left.jpg
However, I played around all morning but was unable to
figure out how to grab the "right.jpg" image of the right page.
I have tried various forms of -gravity ... but no luck
I would like to use percentages rather than fixed pixel coordinates
because the double-page-spread images are of slightly different sizes.
Thanks in advance for your assistance.
Michael
Q: What is the command that I would use to extract the right-side 52%x100% of an image?
DETAIL
I only use ImageMagick a couple of times a year, so I never get good at it.
Current problem: splitting double-page "spread" images into single pages.
I have received a number of pages from scanned books which are two pages wide.
I want to split them into two pages, left and right.
The binding of the book isn't always in the center, so I want there to
be some overlap. I'll fine-tune the cropping by hand later.
I can successfully extract the left page image using
$ convert spread.jpg -crop 52%x100%+0+0 left.jpg
However, I played around all morning but was unable to
figure out how to grab the "right.jpg" image of the right page.
I have tried various forms of -gravity ... but no luck
I would like to use percentages rather than fixed pixel coordinates
because the double-page-spread images are of slightly different sizes.
Thanks in advance for your assistance.
Michael