Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 311 Bytes

how-to-set-jpeg-image-quality.md

File metadata and controls

15 lines (9 loc) · 311 Bytes

How to set jpeg image quality

# ...

imagejpeg($im, '/tmp/image.jpg', 90);
  • 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)

group: quality