i followed this code to resize the images user posted to my site, but the quality is really bad (non anti-alias)..
code:
$src_img = imagecreatefromjpeg($lgimg);
$new_w = imagesx($src_img)/4;
$new_h = imagesy($src_img)/4;
$dst_img = imagecreate($new_w,$new_h);
imagecopyresized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,imagesx($src_img),imagesy($src_img));
imagejpeg($dst_img, $final_smname,100);
please, tell me how to make it better..
thank you..