Dependency-free Node.js module for removing EXIF metadata from JPEG images
npm install exifremove
Dependency-free Node.js module that simply removes all EXIF metadata from a single image or a set of images.
``sh`
npm install exifremove
or, if you would like to use the CLI:
`sh`
npm install -g exifremove-cli
Example of module usage:
`js
const fs = require('fs');
const exifremove = require('exifremove');
const image1 = fs.readFileSync('image1.jpg');
const image2 = fs.readFileSync('image2.jpg');
// Remove just one image's Exif
let image = exifremove.remove(image1);
console.log(image); //
// Remove multiple images' Exif
let images = exifremove.removeMultiple([image1, image2]);
console.log(images);
/*
[
]
*/
`
`
exifremove [image0] ... [imageN]
Options:
--version Show version number [boolean]
-v, --verbose Print extra messages [count]
--km, --keep-marker Keeps the APP1 marker in the JPEG [boolean]
-h, --help Show help [boolean]
``
Check out the CLI module's Readme for more information.