Wednesday, January 9, 2008

GD vs ImageMagick

Well I've seen some code in php.net about creating thumbnails fast, basically some guy wrote an alternative to imagecopyresampled and called it fastimagecopyresampled. I decided to see how fast it really is, so to compare I created a script that would create thumbnails from a bunch of images using ImageMagick.

And here are the results:

Using ImageMagick to generate 6 thumbnails from a gallery.



Now using GD to generate the same thumbnails, I deleted the old ones.



It is clear who the winner is, definitely GD.



References:
http://us.php.net/manual/en/function.imagecopyresampled.php
http://www.php.net/manual/en/function.imagick-thumbnailimage.php
http://valokuva.org/?paged=2



Powered by ScribeFire.