Hi there.
How can we create Thumbnail image by PHP?
Can you help me ?
How can we create Thumbnail image by PHP?
Moderator: General Moderators
Re: How can we create Thumbnail image by PHP?
You can use http://php.net/imagecreatefromjpeg (or what other php supported format you need) to open the original image as an object, create the thumbnail image object using http://php.net/imagecreatetruecolor, resize/copy it from the original to the thumbnail one with http://php.net/imagecopyresampled, the save it with http://php.net/imagejpeg.
Re: How can we create Thumbnail image by PHP?
Greatest answer.
Thank you my friend.
Thank you my friend.
Re: How can we create Thumbnail image by PHP?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.