note 94493 added to function.imagick-resizeimage
| From: | dennisatgofolodotcom at osu1 dot php dot net | Date: | Sun, 08 Nov 2009 14:32:09 +0000 |
| Subject: | note 94493 added to function.imagick-resizeimage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162634@lists.php.net to get a copy of this message | ||
Having to do alot of resizing, i needed to know the speeds of the different resize filters.
This was how long it took to resize a 5906x5906 JPEG image to 1181x1181.
FILTER_POINT took: 0.334532976151 seconds
FILTER_BOX took: 0.777871131897 seconds
FILTER_TRIANGLE took: 1.3695909977 seconds
FILTER_HERMITE took: 1.35866093636 seconds
FILTER_HANNING took: 4.88722896576 seconds
FILTER_HAMMING took: 4.88665103912 seconds
FILTER_BLACKMAN took: 4.89026689529 seconds
FILTER_GAUSSIAN took: 1.93553304672 seconds
FILTER_QUADRATIC took: 1.93322920799 seconds
FILTER_CUBIC took: 2.58396601677 seconds
FILTER_CATROM took: 2.58508896828 seconds
FILTER_MITCHELL took: 2.58368492126 seconds
FILTER_LANCZOS took: 3.74232912064 seconds
FILTER_BESSEL took: 4.03305602074 seconds
FILTER_SINC took: 4.90098690987 seconds
I ended up choosing CATROM as it has a very similar result to LANCZOS, but is significantly faster.
----
Server IP: 69.147.83.197
Probable Submitter: 87.59.236.178
----
Manual Page -- http://www.php.net/manual/en/function.imagick-resizeimage.php
Edit -- https://master.php.net/note/edit/94493
Del: integrated -- https://master.php.net/note/delete/94493/integrated
Del: useless -- https://master.php.net/note/delete/94493/useless
Del: bad code -- https://master.php.net/note/delete/94493/bad+code
Del: spam -- https://master.php.net/note/delete/94493/spam
Del: non-english -- https://master.php.net/note/delete/94493/non-english
Del: in docs -- https://master.php.net/note/delete/94493/in+docs
Del: other reasons-- https://master.php.net/note/delete/94493
Reject -- https://master.php.net/note/reject/94493
Search -- https://master.php.net/manage/user-notes.php