Welcome to WebmasterWorld Guest from 184.108.40.206 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
resize images w/o sacrificing quality basic php image resize can really make your images look bad... irock
I'm trying to add a JPEG image resize for my catalog. However, when I tried to use the following code. My images would look very wash out. I was wondering if there's a way to resample the size of the image w/o scarificing the quality of the original image. I'm using PHP/mySQL.
$orig_image = imagecreatefromjpeg("path/to/imagefile.jpg"); $sm_image = Imagecreate(50,50); Imagecopyresized($sm_image,$orig_image,0,0,0,0,50,50,imagesx($orig_image),imagesy($orig_image)); Header("Content-type: image/jpeg"); imageJPEG($sm_image); imagedestroy($sm_image); imageDestroy($orig_image); ?>