Optimal PNG or JPEG image compression quality / low file size - PHP

What is an optimal PNG or JPEG image compression quality when using PHP imagepng() or imagejpeg() ? I need to get a good image quality, but also a low file size.
0
give a positive ratinggive a negative rating
16 May 2022 at 06:48 PM
Hi,

Good quality for image compession is:
  • PNG - around 5
  • JPEG - around 75


These compressions levels should provide a good image quality and relatively low file size. I recommend to use at least some conversion to get images with low file size. Images with no compression have often large file size.
0
give a positive ratinggive a negative rating
19 May 2022 at 11:57 AM
Tim
Share on FacebookShare on TwitterShare on LinkedInSend email
x
x
2024 AnswerTabsTermsContact us