PHP 8.5.0 Alpha 4 available for testing

Voting

: zero plus four?
(Example: nine)

The Note You're Voting On

cognettings at gmail dot com
4 months ago
To resize height without specifying a width you can rotate the image by 90 degrees, resize, then rotate by 270 degrees.

$outputImage = imagerotate($image, 90, 0);
$outputImage = imagescale($outputImage, $minSize);
$outputImage = imagerotate($outputImage, 270, 0);

<< Back to user notes page

To Top