-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Option to replace EXIF metadata #2910
Labels
Milestone
Comments
Perhaps the API could look something like the following: // PROPOSED API - NOT YET AVAILABLE
.withMetadata({
exif: { key: "value" },
exifReplace: true
}) Happy to accept a PR, if you're able. |
3 tasks
This is being covered as part of the work integrating the new "keep" metadata feature of libvips - see #3824 (comment) |
Please subscribe to #3824 for updates on the provision of a new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are you trying to achieve?
Discard all existing metadata of an image and only write entries specified within
withMetadata
to the file. The current behavior merges existing entries with the new ones.Have you searched for similar questions?
Sure at least: #650, #2724, #2812, #2638, #2507
The
strip
tag of libvips is!baton->withMetadata
controlled by!baton->withMetadata
. So might be difficult to combinestrip
and updating metadata together within libvips. Is there any other option instead encoding the image twice?Are you able to provide a minimal, standalone code sample that demonstrates this question?
Already exists, there you go: https://sharp.pixelplumbing.com/api-output#withmetadata
Are you able to provide a sample image that helps explain the question?
Not required.
The text was updated successfully, but these errors were encountered: