-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add option to keep metadata #27
base: main
Are you sure you want to change the base?
Conversation
'-clobber', | ||
'-o', | ||
options.optimizationLevel, | ||
'-out', | ||
execBuffer.output | ||
]; | ||
|
||
if (options.strip) { | ||
arguments_.unshift('all'); | ||
arguments_.unshift('-strip'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use .push
. And one call is enough.
@@ -93,6 +93,13 @@ Default: `true` | |||
|
|||
A reasonable amount of effort will be spent to try to recover as much data as possible of a broken image, but the success cannot generally be guaranteed. | |||
|
|||
##### strip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
##### strip | |
##### stripMetadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but wouldn't that strip metadata? Or would that be too simple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what you're asking. I'm saying the option should be named better as it only strips metadata.
Hey folks, |
This PR adds the option to preserve the image metadata. More explanation https://manpages.debian.org/stretch/optipng/optipng.1.en.html