Menu
  • HOME
  • TAGS

php resize image without loss quality

php,image,php-imagecopy

imagejpeg uses 75 quality by default. So you need to define it explicitly. imagejpeg($thumb, $filename."_prev.jpg", 100); Also, use imagecopyresampled imagecopyresampled() copies a rectangular portion of one image to another image, smoothly interpolating pixel values so that, in particular, reducing the size of an image still retains a great deal of...