You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, it says that version 2.0 is being worked on and in the 2.0 branch it says it will be released soon. That was 2 years ago. There are better supported libs for reading exif, but not sure about the writing bit.
@stackcoder using sharp is probably the easiest option, but I just confirmed with the author that it is currently impossible to modify exif data without re-encoding the image data which is unfortunate. So there is still a need for a javascript exif writer that doesn't alter the image data.
I was hoping to find a package that let me strip EXIF data (specifically location and such). This package seemed good, but no TypeScript typings makes it difficult to use. Additionally, I'm trying to use a Cloudflare Worker, and I'm not sure what would be natively compatible with them as well. If anyone has better suggestions than this library, I'd love to hear it.
Activity
fatso83 commentedon Sep 28, 2021
Yeah, it says that version 2.0 is being worked on and in the 2.0 branch it says it will be released soon. That was 2 years ago. There are better supported libs for reading exif, but not sure about the writing bit.
stackcoder commentedon Oct 4, 2021
Meanwhile you can write exif data using sharp (based on libvips): https://sharp.pixelplumbing.com/api-output#withmetadata
But there might no other native nodejs implementation.
dlong500 commentedon Aug 9, 2022
@stackcoder using sharp is probably the easiest option, but I just confirmed with the author that it is currently impossible to modify exif data without re-encoding the image data which is unfortunate. So there is still a need for a javascript exif writer that doesn't alter the image data.
Oudwins commentedon Jun 18, 2023
@dlong500 May I ask why it is desired for the image data to be unaltered?
dlong500 commentedon Jun 18, 2023
Because re-encoding the image data is always going to result is some loss of quality (at least for a lossy format).
Chew commentedon Jun 27, 2023
I was hoping to find a package that let me strip EXIF data (specifically location and such). This package seemed good, but no TypeScript typings makes it difficult to use. Additionally, I'm trying to use a Cloudflare Worker, and I'm not sure what would be natively compatible with them as well. If anyone has better suggestions than this library, I'd love to hear it.