mixed iptcembed ( string $iptcdata , string $jpeg_file_name [, int $spool ] )
Embeds binary IPTC data into a JPEG image
Embeds binary IPTC data into a JPEG image.
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);
?>
0 Comment:
Post a Comment