The message 439954E7.9010806@quarella.co.uk from Mark Rogers mark@quarella.co.uk contains these words:
Chris Green wrote:
What's a quick and easy tool for resizing (as in changing the default screen size) of a Jpeg file?
As with others here I was going to suggest imageMagick, but since they have I won't.
Instead I have a related question: Is there a way with imageMagick (or something else, for that matter, but commandline based) to shoehorn an image into a fixed size and shape, using a specified background colour where the height:width ratio of the image differs from the desired destination size?
Yes.
Eg: I have a 300x300 box to put a 400x600 image into. It would need reducing to 200x300 (so it fits the 300x300), then centred over (say) a black 300x300 rectangle to create the final image. Ideally the background colour, and alignment over the background, would be optional, but black and centred would normally be fine.
Yes.
Whenever I've used convert I've been unable to achieve this (I get the 200x300 bit easily, but that's where I get stuck). Given the myriad of options I've never been convinced the option I want isn't lurking there somewhere.
You can do it quite easily with html...