Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Cannot find a way to get the document name #198

Open
rgpublic opened this issue Mar 10, 2022 · 0 comments
Open

Cannot find a way to get the document name #198

rgpublic opened this issue Mar 10, 2022 · 0 comments

Comments

@rgpublic
Copy link

rgpublic commented Mar 10, 2022

I cannot for the life of me find a way to extract the document name:

<?php
use lsolesen\pel\PelJpeg;
use lsolesen\pel\PelTag;

$jpeg=new PelJpeg('samplepic-doctitle.jpg');
$exif=$jpeg->getExif();
$tiff=$exif->getTiff();
$ifd=$tiff->getIfd();
print_r($ifd->getEntry( PelTag::DOCUMENT_NAME));

samplepic-doctitle

I see the name, though, if I check with GNOME's file manager or other apps:

grafik

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant