PHP thumbnails
- Started
- Last post
- 5 Responses
- blastofv
help a non-programmer out – I'm art directing a site that requires automatic thumbnail generation of GIF and JPG images (from 350x350 down to like 110x110).
My developer is using a script now that generates choppy thumbnails, and I need crisp quality...any recommendations for a tried-and-true script? File size is not an issue, just quality! I found a ton online here, but I don't what's what:
- heavyt0
this is pretty simple. it is all built in to PHP 4.3+.
the trick is to use the imagecopyresampled method instead of the imagecopyresize method.
resampled will make it smooth.
I have a class written if you or your developer want it. just let me know.
TR1
- blastofv0
thanks heavyt – I'll drop you an email...
- heavyt0
in case anyone is interested, code and documentation is at:
http://www.supersimple.org/simpl…TR1
- radar0
nice, thanks heavyt
- mubs0
If you're saving JPEG files you'll want to make sure you pass the quality parameter when you save the thumbnail:
http://us2.php.net/manual/en/fun…
It is an option paramter, with default value is 75% which can make some bad thumbnails.
Mubs