In a php application, I took over JPG files are created using the "imagejpeg" function. In each of these files, there is a comment like "CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 90". Now our company security guidelines demand blocking for images containing comments. So I am trying to generate JPGs without a comment.
I searched the web, but I couldn't find a way to stop gd from adding this comment. Is it possible at all or do I to have to use another library or the like?
IMO it is impossible to block it, only remove using Imagick:
$img = new Imagick('input.jpg');
$img->stripImage();
$img->writeImage('output-imagick.jpg');
$img->destroy();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With