Adding whitespace around an image to make it the right size
Posted: 2008-06-21T00:45:58-07:00
I hardly ever use ImageMagick, excellent tho it is, so I hope that people will bear with me if I'm asking a silly question.
I want to reprint an old book on lulu.com. I've scanned the pages as images (jpgs). But each image is smaller than the page size that lulu want.
What this means is that lulu resize the image to fill the space, which distorts it.
What I want to do is to put whitespace all the way around the image, to fill it out to the size (in inches or cms) that I need. In this way the image of the page text will remain the same size, but the actual file will be larger.
Can anyone tell me how best to do this? I saw the -border, but this seemed to involve me specifying the width of the border, rather than the end-size of the image.
Suggestions very welcome.
All the best,
Roger Pearse
I want to reprint an old book on lulu.com. I've scanned the pages as images (jpgs). But each image is smaller than the page size that lulu want.
What this means is that lulu resize the image to fill the space, which distorts it.
What I want to do is to put whitespace all the way around the image, to fill it out to the size (in inches or cms) that I need. In this way the image of the page text will remain the same size, but the actual file will be larger.
Can anyone tell me how best to do this? I saw the -border, but this seemed to involve me specifying the width of the border, rather than the end-size of the image.
Suggestions very welcome.
All the best,
Roger Pearse