Open hanoncs opened 3 years ago
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.
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.
@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.
@dlong500 May I ask why it is desired for the image data to be unaltered?
@dlong500 May I ask why it is desired for the image data to be unaltered?
Because re-encoding the image data is always going to result is some loss of quality (at least for a lossy format).
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.
Should probably mark this repo as dead since its no longer supported by anyone.