8000 Check for greyscale when small image uses palette by SuperFun99 · Pull Request #2 · fhanau/zopfli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Check for greyscale when small image uses palette #2

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 co 8000 mmunity.

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

Merged
merged 2 commits into from
Mar 27, 2017

Conversation

SuperFun99
Copy link

When a small file is stored with a palette, a test is made to see if
removing the palette, and the overhead that goes with it, results in
an even smaller file. That test was always attempting RGB or RGBA
mode even when the image in question was greyscale. I added a check
for greyscale.

When a small file is stored with a palette, a test is made to see if
removing the palette, and the overhead that goes with it, results in
an even smaller file.  That test was always attempting RGB or RGBA
mode even when the image in question was greyscale.  I added a check
for greyscale.
@SuperFun99
Copy link
Author

Here's a pull request with only the greyscale change and not all that junk.

When checking if an image is smaller without a palette, use
the minimum bit depth for greyscale images instead of
defaulting to 8 bits.
@fhanau fhanau merged commit 4a98297 into fhanau:master Mar 27, 2017
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.

2 participants
0