Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Don't apply any alpha optimizations if they are disabled - #187

Merged
shssoichiro merged 7 commits into
oxipng:masterfrom
sethdusek:master
Sep 24, 2019
Merged

Don't apply any alpha optimizations if they are disabled#187
shssoichiro merged 7 commits into
oxipng:masterfrom
sethdusek:master

Conversation

@sethdusek

Copy link
Copy Markdown
Contributor

This should fix #164

@shssoichiro

Copy link
Copy Markdown
Collaborator

Given the discussion around how alpha reduction may not be lossless in some cases, I think it may be better to never enable alpha reduction with a preset, i.e. only enable if the user passes the --alpha flag. It's probably also worth adding something like "This may not be lossless for some applications." to the help text for the --alpha setting.

@sethdusek
sethdusek force-pushed the master branch 2 times, most recently from bc4e6a4 to b808239 Compare August 10, 2019 17:37
shssoichiro
shssoichiro previously approved these changes Sep 24, 2019

@shssoichiro shssoichiro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to go ahead and change this to disable alpha optimization at all presets, since it's not truly lossless. This means a user will have to explicitly pass the --alpha flag to enable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to disable alpha optimization

2 participants