Hi CK -
I'm testing the function imagejpeg (and imagepng for PNG files) to increase the quality of the reduced inline images from a default quality of 75 to 100.
I've added the following imagejpeg code to test:
imagecopyresampled($new, $img, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
imagejpeg($new, $filename, 100);
$save($new, $output);
The image quality is increased greatly, however I have to reload the page to see the better image. It's definitely not a cache issue. It's pulling the lower quality image first and then showing the higher quality version after browser refresh.
I'm unclear what the $save($new, $output) function does, and that may be the culprit.
Any help would be great! Thanks!