Back to the snippets index

Resize keep aspect ratio.

( Anthony 21/6/2008 )

Resize the image to 250 maximum wide x 90 maximum height keeping the aspect ratio.

IM code:

<?php
exec
("convert input.jpg -resize 250x90 output.jpg");
?>