mattiasw / ExifReader

A JavaScript Exif info parser.
Mozilla Public License 2.0
751 stars 88 forks source link

[Question] Is there a way to remove all metadata? #234

Closed ternaus closed 1 year ago

ternaus commented 1 year ago

Is there a way to remove all metadata from jpg, tiff, webp, png, heic files?

mattiasw commented 1 year ago

Hi! Writing to a file is not possible with ExifReader. But if you're in a web browser environment I believe it's not that hard to do by writing the image to an HTML canvas and then saving the canvas as a new image file. That would automatically remove all meta data.