2948 explained code solutions for 75 technologies


php-gdHow to set jpeg image quality


# ...

imagejpeg($im, '/tmp/image.jpg', 90);ctrl + c
imagejpeg

saves $im gd object to the specified 'jpeg' file

/tmp/image.jpg

path to save jpeg to

90

level of image quality (use 100 for best quality, lower values reduce quality)