Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to set default time zone for EXIF / IPTC data #5

Merged
merged 3 commits into from
Dec 22, 2024

Conversation

thekid
Copy link
Member

@thekid thekid commented Dec 22, 2024

This pull request adds an optional parameter to exifData() and iptcData() in img.io.ImageMetaData.

Example

use img\io\MetaDataReader;
use io\streams\FileInputStream;
use util\TimeZone;

$reader= new MetaDataReader();
$meta= $reader->read(new FileInputStream($argv[1]));

// Uses the supplied time zone 
$exif= $meta->exifData(new TimeZone('Asia/Muscat'));

// If omitted, uses system's local timezone
$exif= $meta->exifData();

Progress

@thekid thekid merged commit 5330211 into master Dec 22, 2024
12 checks passed
@thekid thekid deleted the feature/timezones branch December 22, 2024 16:45
@thekid
Copy link
Member Author

thekid commented Jan 1, 2025

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

Successfully merging this pull request may close these issues.

1 participant