Comments (6)
@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.
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.
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.
@dlong500 May I ask why it is desired for the image data to be unaltered?
from piexifjs.
@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.
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)
- Ios exif is null but work on android with same jpg file HOT 1
- Latest npm publish missing files HOT 2
- TypeError: Cannot use 'in' operator to search for '0th' in data:image... HOT 2
- Problem importing 2.0 beta HOT 5
- Problem when running inside cordova HOT 3
- Set latest tag to v1.x on npm HOT 1
- Problem when reading or writing in Chinese HOT 1
- Update piexif version string in v1.0.5
- problem setting 0x9286 EXIF UserComment HOT 1
- Lost / modified fields setting GPS to {}
- Not writing offset of next IFD HOT 1
- Line 55 miss the colon. ; in file LoadSample.html
- 'constants' and 'Tags' missing in npm package
- Is v2.0 still to be released? HOT 3
- 我清除Exif信息 图片怎么还是旋转的 怎么可以不旋转图片
- JPEG QUALITY BY DEFAULT AT 1.0
- Document how to set GPSHPositioningError
- Supported file formats HOT 3
- Pack Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piexifjs.