note 75019 deleted from function.imagick-resize by tularis
| From: | tularis@php.net | Date: | Tue, 08 May 2007 22:50:58 +0000 |
| Subject: | note 75019 deleted from function.imagick-resize by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-126342@lists.php.net to get a copy of this message | ||
Note Submitter: info at awbtechnology dot com
Reason: useless
----
I've experienced problems resizing 300K jpeg with GD library. Server wanted more that 20Megs of
memory - too much.
I used imagick_resize. Here's very simple example - nice function. No quality loss:
$image = imagick_readimage($filename);
imagick_resize($image, 640, 480, IMAGICK_FILTER_UNKNOWN, 1);
imagick_writeimage($image,$resizedfilename);
May be it can help somebody. Cheers.