Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- image resize quality
February 24, 2006, 12:24 am
rate this thread
I was just wondering if you do any "thumbnailing" (imagecopyresized) of
images and if you have noticed that the quality is not always that great.
This is what I use:
$source = imagecreatefromjpeg($filename);
$thumb = imagecreatetruecolor($w[$portrait][$j],$h[$portrait][$j]);
$source = @imagecreatefromjpeg($filename);
imagecopyresized($thumb, $source, 0, 82, 0, 0, $w[$portrait][$j],
$h[$portrait][$j], $width, $height);
And the images come out rather pixilated...
- Nicholas Sherlock
February 24, 2006, 1:17 am
- » PHP encrypt/decrypt with only using standard characters
- — Previous thread in » PHP Scripting Forum