note 106256 added to function.imagecopyresampled

From: Date: Fri, 21 Oct 2011 20:27:14 +0000
Subject: note 106256 added to function.imagecopyresampled
Groups: php.notes 
Request: Send a blank email to php-notes+get-184060@lists.php.net to get a copy of this message
A simple function that will crop xxx px from the bottom of the image. function cropBottom($image,$bottom) { list($width, $height) = getimagesize($image); $img = imagecreatefromjpeg($image); $crop = imagecreatetruecolor($width,$height-$bottom); imagecopyresampled ( $crop, $img, 0, 0, 0, 0, $width, $height, $width, $height ); imagejpeg($crop,$image,85); } ---- Server IP: 69.147.83.197 Probable Submitter: 77.18.35.212 ---- Manual Page -- http://www.php.net/manual/en/function.imagecopyresampled.php Edit -- https://master.php.net/note/edit/106256 Del: integrated -- https://master.php.net/note/delete/106256/integrated Del: useless -- https://master.php.net/note/delete/106256/useless Del: bad code -- https://master.php.net/note/delete/106256/bad+code Del: spam -- https://master.php.net/note/delete/106256/spam Del: non-english -- https://master.php.net/note/delete/106256/non-english Del: in docs -- https://master.php.net/note/delete/106256/in+docs Del: other reasons-- https://master.php.net/note/delete/106256 Reject -- https://master.php.net/note/reject/106256 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184060) next »