Re: how to scale down image using ImageMagick?
| From: | Steve Werby | Date: | Wed, 18 Apr 2001 20:45:44 +0000 |
| Subject: | Re: how to scale down image using ImageMagick? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49348@lists.php.net to get a copy of this message | ||
"Noah Spitzer-Williams" <noahsw@cyberdude.com> wrote:
> I have a bunch of pictures all in ranging filesizes and dimensions. I want
> to resize the ones that over 175 pixels wide to a 175 pixel wide picture
> however i want the height to scale down (ie. i dont want a really thin
> picture, i just want it to be what it would be if it were resized). i have
> this but i cant figure out how to just scale down the width:
>
> c:\progra~1\imagem~1\mogrify.exe -geometry 175x30! picture.jpeg
>
> the '!' forces those sizes to be used but obvoiusly i dont want the height
> to be 30. i want it to be whatever it should be so the picture doesnt look
> flattened.
I believe imagemagick has an option where you can specify a single dimension
(x or y) and it will set that dimension accordingly and automatically scale
the other dimension. This should be covered in the manual pages or --help
output of the program.
--
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/