note 35945 added to function.imagecopyresampled

From: Date: Sat, 20 Sep 2003 00:58:20 +0000
Subject: note 35945 added to function.imagecopyresampled
Groups: php.notes 
Request: Send a blank email to php-notes+get-56789@lists.php.net to get a copy of this message
In the sample code by thomasNOSPAM at NO_SPAM dot gutschke dot com, if you use max() instead of min(), you'll get the same scaling without distorting for images with proportions different from the desired thumbnail, but without the black borders. Instead, it will trim off the top/bottom or left/right edges, capturing the center of the image in the thumbnail. Pick your poison, I suppose. ---- Manual Page -- http://www.php.net/manual/en/function.imagecopyresampled.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35945 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35945&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35945&report=yes

« previous php.notes (#56789) next »