I noticed that each time I save a jpg file in PHP, it is saved with sub-sampling. How to remove that? I'm using GD library.
Asked
Active
Viewed 308 times
1 Answers
0
I believe newer versions of libgd
disable chroma-subsampling if you set the quality to 90 or higher.
Failing that, you could consider using PHP Imagick and disabling chroma sub-sampling with:
$img->setSamplingFactors(array('1x1', '1x1', '1x1'));

Mark Setchell
- 191,897
- 31
- 273
- 432