Posted by Jim Higson on 09/25/05 15:56
diablo wrote:
> hi
>
> is there a way to restrict the width and height of an img?
>
> what i want to do is if the img is less than 200x200 then i want it
> displayed at its size. but if it is bigger that 200x200 then i want it to
> be resized as 200x200.
If you are talking server side resizing, ImageMagick does this very well.
Off the top of my head, try:
convert --resize 200x200 whatever.png whatever-200.png
Of course, you'll need it installed first, but it's very likely to come as
default with a Linux/Unix server.
Jim
[Back to original message]
|