The following code resizes an image so that its width is 200 and its height is whatever... How would I do it so that the height was 200 and the width was whatever...
$command = MAGICK_PATH."convert ".$filename." -resize 200 ".$filename; exec($command);
Kind regards J
The manual has a complete overview over resizing options.
You are looking for
xheight
Height given, width automagically selected to preserve aspect ratio.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With