XMP Parser
Super-light and fast JavaScript lib to read and parse XMP (Extensible Metadata Platform) metadata (such as Title, Description etc.) from JPEG files written, for example, by Adobe Photoshop and Adobe Lightroom.
Install
npm i xmp-js
Usage
In Browser
<script src="dist/xmp.iife.min.js"></script><script> let input = document; input</script>
See demo.html
for example.
As ES6 Module
;let xmp = < ArrayBuffer or dataURI > raw = xmp parsed = xmp;// do what you want with `raw` or `parsed` XMP
In Node.js
const XMP = fs = ; fs;
See demo.js
for example.
Build
Install npm
packages:
npm i
Production build with Rollup.js
:
npm run build