tacoberu / php-exif-tools
php-exif-tools is a simple library for manipulate (read and write) with the EXIF meta-data of an image.
Installs: 4 429
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 3
Open Issues: 0
pkg:composer/tacoberu/php-exif-tools
Requires
- ext-exif: *
Requires (Dev)
- phpunit/phpunit: ^4
- tracy/tracy: ^2.4
This package is auto-updated.
Last update: 2026-02-19 15:38:12 UTC
README
php-exif-tools is a simple library for manipulate (read and write) with the EXIF meta-data of an image.
Example
Read meta-data:
use Taco\Tools\Exif;
use SplFileInfo;
(new Exif\ExifReader)->read(new SplFileInfo('file.jpeg')) == (object)[
'mime' => 'image/jpeg',
'title' => 'Salut',
'datetime' => new DateTime('2019-02-23 21:20:00'),
'orientation' => 3,
];
Write meta-data:
use Taco\Tools\Exif;
use SplFileInfo;
(new Exif\ExifWrite(new SplFileInfo('file.jpeg'))->write([
ExifWriter::SECTION_TITLE => 'Salut',
]));