On 08-Dec-05 Jim Rippon wrote:
Chris Green wrote:
What's a quick and easy tool for resizing (as in changing the default screen size) of a Jpeg file? I have some scanned images that I want to display smaller on web pages and, although gimp will do it, it does seem a bit of a sledgehammer to crack a nut.
It would be nice to be able to just say something like:-
someProgram -x 400 -y 200 <old.jpg >new.jpg
Going further, is it easy/possible to change the size of an image according to the size of the browser window being used? I use a 1600x1200 display at home so a 400x200 image will be quite small really but if anyone looks at the same page on (say) 800x600 it's going to be a bit on the large size.
Chris,
How about ImageMagick's convert program:
http://www.imagemagick.org/script/convert.php
convert old.jpg -size 400x200 new.jpg
And don't forget to have a look at all the options in "man comvert" for enhancing/smoothing/etc (you may need to look up "man ImageMagick" to get explanations of some of them).
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 08-Dec-05 Time: 12:11:05 ------------------------------ XFMail ------------------------------