note 130219 added to function.imagescale

From: Date: Wed, 02 Apr 2025 14:41:42 +0000
Subject: note 130219 added to function.imagescale
Groups: php.notes 
Request: Send a blank email to php-notes+get-222055@lists.php.net to get a copy of this message
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); ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.84.18 (proxied: 50.120.211.183) ---- Manual Page -- https://php.net/manual/en/function.imagescale.php Edit -- https://main.php.net/note/edit/130219 Del: integrated -- https://main.php.net/note/delete/130219/integrated Del: useless -- https://main.php.net/note/delete/130219/useless Del: bad code -- https://main.php.net/note/delete/130219/bad+code Del: spam -- https://main.php.net/note/delete/130219/spam Del: non-english -- https://main.php.net/note/delete/130219/non-english Del: in docs -- https://main.php.net/note/delete/130219/in+docs Del: other reasons-- https://main.php.net/note/delete/130219 Reject -- https://main.php.net/note/reject/130219 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222055) next »