PHPExiftool icon indicating copy to clipboard operation
PHPExiftool copied to clipboard

Unable to write RegistryEntryRole .JPG Metadata Tag

Open supergulzar1 opened this issue 4 years ago • 0 comments

I am not able to write the RegistryEntryRole for the (JPG) image. I used below code snippet :

require __DIR__ . '/autoload.php';

use Monolog\Logger;
use PHPExiftool\Writer;
use PHPExiftool\Driver\Metadata\Metadata;
use PHPExiftool\Driver\Metadata\MetadataBag;
use PHPExiftool\Driver\Tag\IPTC\ObjectName;
use PHPExiftool\Driver\Value\Mono;
use PHPExiftool\Driver\Tag\XMPIptcExt\RegistryEntryRole;

$logger = new Logger('exiftool');
$writer = Writer::create($logger);

$bag = new MetadataBag();
$bag->add(new Metadata(new RegistryEntryRole(), new Mono('New Value')));

$writer->write('test.jpg', $bag);

i checked the image metadata by both phpexiftool and getpmd.iptc.org, neither of them shows me RegistryEntryRole value. Any suggestion why? PHPEXIFTOOL: 0.7.3 Thank You.

supergulzar1 avatar Jan 27 '21 21:01 supergulzar1