Forum Moderators: coopster
Andreas
$src_img = ImageCreateFromJPEG($image);
$dst_img = ImageCreateTrueColor($thumbw, $thumbh);
ImageCopyResampled($dst_img, $src_img, $deltaw, $deltah, 0, 0, $width, $height, ImageSX($src_img),ImageSY($src_img));
imagejpeg($dst_img, "headshot_resample.jpg", 86);
It's right from the snippet in the php documentation. It just does not work...the original image is fine, the resultant image is this pixelated mess everytime. I even tried the imageresamplebicubic..nothing seems to work...
Andreas
Hi Birdman :)