joshbuddy / exif-be-gone

Remove exif data using a node.js transform stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exif be gone

Zero dependency stream transformer to remove data that could be potentially private.

For jpegs and tiffs, it currently looks for data in the app1 section that is either exif, xmp, or FLIR and removes it from the stream.

For png, it looks for tIME, iTXt, tEXt, zTXt, eXIf and dSIG chunks and removes those.

Installation

Use npm install exif-be-gone to install this package.

Example usage

const ExifTransformer = require('exif-be-gone')
const fs = require("fs")

const reader = fs.createReadStream('Canon_40D.jpg')
const writer = fs.createWriteStream('out.jpg')

reader.pipe(new ExifTransformer()).pipe(writer)

There is also a command-line version that is installed that can be run via:

$ exif-be-gone [INPUT] [OUTPUT]

About

Remove exif data using a node.js transform stream


Languages

Language:JavaScript 53.2%Language:TypeScript 39.0%Language:Shell 7.7%