PHP 8.5.0 RC 5 available for testing

Voting

: two minus zero?
(Example: nine)

The Note You're Voting On

Jarek Milewski
14 years ago
To remove all EXIF, XMP etc. tags from a jpeg file you need no resampling (which, by the way, may give you memory problems). It's just enough to recreate the image, presumably with 100% quality in order not to loose anything. The code is as simple as that:

<?php
    $img = imagecreatefromjpeg ($path);
    imagejpeg ($img, $path, 100);
    imagedestroy ($img);
?>

<< Back to user notes page

To Top