[magick-users] RE: Resize

Fred Weinhaus fmw at alink.net
Thu Feb 7 13:11:10 PST 2008


See http://www.imagemagick.org/script/command-line-options.php#resize

To resize to some specific dimension, such as 600x300, use

convert rose.jpg -resize 600x300\! rose1.jpg


Also from your message about getting 50x50 from a 1280x960 image, 
perhaps your image size is not what you think. Also be sure you do 
not have a space between 50 and %, ie, it should be 50% and not 50 %.

JPG format is lossy and not a good format for trying to get exact 
file sizes in bytes as a result. You can control (but not specify 
exactly) the resulting file size by using the -quality option before 
the output.  See

http://www.imagemagick.org/script/command-line-options.php#quality
http://www.imagemagick.org/Usage/formats/#jpg_write



>Hi,
>
>Thanks
>
>We are trying to reduce a .jpg file to 50% of its original size
>We have a rose.jpg which is 1280 * 960
>
>If we use
>Convert rose.jpg -resize 50% rose1.jpg.
>
>It reduces the dimension to 50 * 50, is there a way to reduce this this
>600 * 300....I mean can it be possible reduce exactly by some %.


More information about the Magick-users mailing list