https://github.com/oaleynik/iptc-reader
Parse IPTC directory from buffer
https://github.com/oaleynik/iptc-reader
buffer image iptc parser
Last synced: about 1 month ago
JSON representation
Parse IPTC directory from buffer
- Host: GitHub
- URL: https://github.com/oaleynik/iptc-reader
- Owner: oaleynik
- License: mit
- Created: 2018-01-12T20:58:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-27T11:39:43.000Z (almost 5 years ago)
- Last Synced: 2023-12-07T14:03:10.862Z (over 2 years ago)
- Topics: buffer, image, iptc, parser
- Language: JavaScript
- Size: 34.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iptc-reader [](https://travis-ci.org/oaleynik/iptc-reader)
> Parse IPTC directory from buffer (similar to devongovett/exif-reader)
## Install
```sh
$ npm install --save iptc-reader
```
## Usage
```javascript
var iptc = require('iptc-reader');
// decode raw iptc data from a buffer
var metadata = iptc(buf);
```
Output:
```javascript
{ keywords: [ 'some', 'useful', 'tags' ],
dateCreated: '20170101',
byline: 'Author Name',
copyright: 'Copyright © Copyright',
caption: 'I\'ve taken this image during our short stop in wonderland' }
```
### Supported tags
```
caption, credit, keywords, dateCreated, byline, bylineTitle, captionWriter, headline, copyright, category
```
## License
MIT © [Oleh Aleinyk](https://github.com/oaleynik)