Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tacoberu/php-exif-tools
php-exif-tools is a simple library for manipulate (read and write) with the EXIF meta-data of an image.
https://github.com/tacoberu/php-exif-tools
Last synced: 2 months ago
JSON representation
php-exif-tools is a simple library for manipulate (read and write) with the EXIF meta-data of an image.
- Host: GitHub
- URL: https://github.com/tacoberu/php-exif-tools
- Owner: tacoberu
- License: mit
- Created: 2017-07-30T03:20:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T02:47:03.000Z (over 4 years ago)
- Last Synced: 2024-10-29T22:25:07.834Z (2 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
php-exif-tools
==============php-exif-tools is a simple library for manipulate (read and write) with the EXIF meta-data of an image.
### Example
Read meta-data:
``` php
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:
``` php
use Taco\Tools\Exif;
use SplFileInfo;(new Exif\ExifWrite(new SplFileInfo('file.jpeg'))->write([
ExifWriter::SECTION_TITLE => 'Salut',
]));
```