Skip to content
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

Incorrect color after minifying image #2

Closed
benjif opened this issue Sep 27, 2019 · 2 comments
Closed

Incorrect color after minifying image #2

benjif opened this issue Sep 27, 2019 · 2 comments

Comments

@benjif
Copy link
Contributor

benjif commented Sep 27, 2019

var img = newImage(500, 500, 4)

img.fill(rgba(255, 255, 255, 255))
img = img.minify(2)

img.save("out.png")

In the PNG file exported above, the background color is #FCFCFC (252, 252, 252).

@treeform
Copy link
Owner

This is interesting. This is some sort of integer precision issue. I'll take a look.

treeform added a commit that referenced this issue Oct 17, 2019
@treeform
Copy link
Owner

Fixed: https://github.com/treeform/flippy/blob/master/src/flippy.nim#L359

Thank you for reporting this!

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

No branches or pull requests

2 participants