https://github.com/fpietka/imparse
Image Metadata Parser
https://github.com/fpietka/imparse
exif iptc php xmp
Last synced: 7 days ago
JSON representation
Image Metadata Parser
- Host: GitHub
- URL: https://github.com/fpietka/imparse
- Owner: fpietka
- License: mit
- Created: 2015-12-20T19:41:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-13T12:52:19.000Z (over 10 years ago)
- Last Synced: 2025-05-31T06:14:02.609Z (about 1 year ago)
- Topics: exif, iptc, php, xmp
- Language: PHP
- Size: 43 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/fpietka/imparse) [](https://scrutinizer-ci.com/g/fpietka/imparse/?branch=master) [](https://scrutinizer-ci.com/g/fpietka/imparse/?branch=master)
Imparse - Image Metadata Parser
-------------------------------
A library to parse Exif, IPTC and XMP metadata from an image.
# Usage
Load an image in the parser:
```php
$parser = new Imparse\Parser('picture.jpg');
```
Then depending on the type of metadata you want to fetch, call the appropriate method.
```php
$parser->readExif();
$parser->getMetaData()['exif'];
```
```php
$parser->readIptc();
$parser->getMetaData()['iptc'];
```
```php
$parser->readXmp();
$parser->getMetaData()['xmp'];
```
# Resources
[IPTC Specifications](http://www.iptc.org/std/IIM/4.2/specification/IIMV4.2.pdf)