I'm trying to remove existing EXIF tags and then apply a copyright string using this essential code below:
$im = new Imagick($file);
$im->stripImage();
// Embed new EXIF data
$im->setImageProperty('EXIF:ImageDescription', $copy_string);
$im->setImageProperty('EXIF:Copyright', $copy_string);
//$im->setImageProperty('Exif:ImageDescription', $copy_string);
//$im->setImageProperty('Exif:Copyright', $copy_string);
//$im->setImageProperty('ImageDescription', $copy_string);
//$im->setImageProperty('Copyright', $copy_string);
$im->writeImage($file);
$im->clear();
$im->destroy();
I'm having trouble finding example usage. The manual has CLI property strings here. None of the lines under "Embed" are having any effect. We're going to stay with Imagick for this solution. Thanks.