resize image without loosing quality

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sourab
Forum Newbie
Posts: 1
Joined: Tue Mar 22, 2011 3:53 pm

resize image without loosing quality

Post by sourab »

Hi, is there any code we can resize( normal and thumbnail) image like facebook without loosing quality or any third party tool . Please let me know i am stuck on my project.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: resize image without loosing quality

Post by Jonah Bron »

Check out the GD library.

http://php.net/gd
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: resize image without loosing quality

Post by Darhazer »

If you use GD, you have to use imagecopyresampled and not imagecopyresized. And you have to keep the image ratio!
ImageMagik usually produces images with higher quality
Post Reply