note 93667 added to function.imagick-scaleimage
| From: | peter at icb dot at | Date: | Tue, 22 Sep 2009 12:25:10 +0000 |
| Subject: | note 93667 added to function.imagick-scaleimage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160918@lists.php.net to get a copy of this message | ||
If using the fit-parameter this function sometimes seems not to work when one of the two sizes
(width or height) is the same size as the image has. For example:
<?php
$image = new Imagick('800x480.jpg');
$image->scaleImage(640, 480, true);
// $image is still 800x480
?>
You have to calculate the new sizes yourself and use false for $fit in this case.
----
Server IP: 212.124.37.9
Probable Submitter: 84.112.104.75
----
Manual Page -- http://www.php.net/manual/en/function.imagick-scaleimage.php
Edit -- https://master.php.net/note/edit/93667
Del: integrated -- https://master.php.net/note/delete/93667/integrated
Del: useless -- https://master.php.net/note/delete/93667/useless
Del: bad code -- https://master.php.net/note/delete/93667/bad+code
Del: spam -- https://master.php.net/note/delete/93667/spam
Del: non-english -- https://master.php.net/note/delete/93667/non-english
Del: in docs -- https://master.php.net/note/delete/93667/in+docs
Del: other reasons-- https://master.php.net/note/delete/93667
Reject -- https://master.php.net/note/reject/93667
Search -- https://master.php.net/manage/user-notes.php