note 78721 added to ref.imagick
| From: | mlong-php at mlong dot us | Date: | Wed, 24 Oct 2007 20:11:31 +0000 |
| Subject: | note 78721 added to ref.imagick | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131703@lists.php.net to get a copy of this message | ||
The fit functionality of thumbnailImage doesn't work as one would anticipate. Instead, use this
to make a thumbnail that has max of 200x82:
// Create thumbnail max of 200x82
$width=$im->getImageWidth();
if ($width > 200) { $im->thumbnailImage(200,null,0); }
$height=$im->getImageHeight();
if ($height > 82) { $im->thumbnailImage(null,82,0); }
----
Server IP: 69.147.83.197
Probable Submitter: 70.43.247.18
----
Manual Page -- http://www.php.net/manual/en/ref.imagick.php
Edit -- https://master.php.net/note/edit/78721
Del: integrated -- https://master.php.net/note/delete/78721/integrated
Del: useless -- https://master.php.net/note/delete/78721/useless
Del: bad code -- https://master.php.net/note/delete/78721/bad+code
Del: spam -- https://master.php.net/note/delete/78721/spam
Del: non-english -- https://master.php.net/note/delete/78721/non-english
Del: in docs -- https://master.php.net/note/delete/78721/in+docs
Del: other reasons-- https://master.php.net/note/delete/78721
Reject -- https://master.php.net/note/reject/78721
Search -- https://master.php.net/manage/user-notes.php