-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add retainExif
option to retain Exif
#159
Conversation
Reference 使用CANVAS压缩JPG图片丢失EXIF信息问题 . |
Is it necessary to add this feature? This is a question that requires careful consideration. In fact, you can read Exif metadata on the browser side and upload it to the server side as a parameter along with the compressed image. |
@fengyuanchen |
Hey this feature will be very helpful. It can save a lot of time. |
@fengyuanchen I would like to ask for this feature to be merged too. |
Indeed, it would be useful to at least have the option to chose since it doesn't impact the code to much |
I was looking for this feature and I would love to see this merged. |
News on this? |
Any updates? |
Just a related comment. It would be amazing if this option (or similar option) could also retain IPTC data (caption, copyright, keywords etc). I believe the goal is to be able to compress images, while keeping ALL image meta data, as this is largely beneficial for image galleries etc when uploading and compressing images. |
Summary
What kind of change does this PR introduce? (check at least one)
If changing the UI of the default theme, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
fix #xxx[,#xxx]
, where "xxx" is the issue number)You have tested in the following browsers: (Providing a detailed version will be better.)
If adding a new feature, the PR's description includes:
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Other information:
By default, the Exif information will be lost in the compressed image. If you want to keep the Exif information of the original image you can set the
retainExif
option totrue