Giter VIP home page Giter VIP logo

Comments (6)

dlong500 avatar dlong500 commented on June 20, 2024 2

@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.

from piexifjs.

fatso83 avatar fatso83 commented on June 20, 2024

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.

from piexifjs.

stackcoder avatar stackcoder commented on June 20, 2024

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.

from piexifjs.

Oudwins avatar Oudwins commented on June 20, 2024

@dlong500 May I ask why it is desired for the image data to be unaltered?

from piexifjs.

dlong500 avatar dlong500 commented on June 20, 2024

@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).

from piexifjs.

Chew avatar Chew commented on June 20, 2024

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.

from piexifjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.