Page 1 of 1
Re: Image thumbnail creator help!
Posted: Fri Apr 30, 2010 4:56 am
by social_experiment
prionkor wrote:How can i improve the quality of the thumbnail image?
'imagejpeg()' accepts an optional argument for quality. The default is 75. Try the following :
Code: Select all
<?php
imagejpeg( $tmp_img, "admin/images/uploads/thumbs/image_001.jpg", 100 ); ?>
Re: Image thumbnail creator help!
Posted: Fri Apr 30, 2010 9:47 am
by pickle
Also, use
imagecopyresampled() instead of
imagecopyresized().
imagecopyresized() doesn't interpolate, which results in stark colour changes.
Re: Image thumbnail creator help!
Posted: Fri Apr 30, 2010 10:37 am
by pickle
Which one are you considering to be "first"?