note 15831 added to function.imagecopyresized
| From: | php dot net at breakingart_no_sp_am dot com | Date: | Thu, 04 Oct 2001 12:33:37 +0000 |
| Subject: | note 15831 added to function.imagecopyresized | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18561@lists.php.net to get a copy of this message | ||
The following script takes $id for filename (without .jpg extension) and $sz for image size and used
imagemagick to return a jpeg.
Alan Scully - breakingart.com
--
header("Content-type: image/jpeg");
$IMG_CONVERT = "/path/to/im/bin/convert ";
$IMG_COMMENT = "-comment 'This image is copyright'";
$IMG_MAGIC = "$IMG_CONVERT $IMG_COMMENT -geometry ".$sz."x$sz -quality 75";
passthru("$IMG_MAGIC /path/to/images/$id.jpg JPEG:-");
--
http://www.php.net/manual/en/function.imagecopyresized.php
http://master.php.net/manage/user-notes.php?action=edit+15831
http://master.php.net/manage/user-notes.php?action=delete+15831
http://master.php.net/manage/user-notes.php?action=reject+15831