Skip to content

Unable to write RegistryEntryRole .JPG Metadata Tag #18

@supergulzar1

Description

@supergulzar1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions