-
Notifications
You must be signed in to change notification settings - Fork 138
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
When I set alpah parameter to 1, some colors lose #7
Comments
I might need to run more tests to make sure it works well with most images, but can you provide a screenshot? It seems to be working fine on my end. This is the screenshot I have. |
@seanooi Hi, I make some tests, when I use iPhone Simulator 7.1 64-bit, it looks very nice. But when I switch to my iPhone 5s, the terrible thing comes. https://www.dropbox.com/s/l1tmxkgensosq4f/IMG_2631.PNG |
I took a closer look at it and noticed the |
Yeah, same thing is happening to me. Removing the if alpha <= 1 clause corrects the issue when the alpha is one. Otherwise, I consistently get a blue hue on all converted images. |
I met an strange question which is that I compressed an UIImage to WebP, but some colors lose, and I also try to use other quality and WEBP_PRESET but fianlly I find the problem is casued by ALPHA parameter. I tried use other numbers less than 1 all are correct. And I try to edit some source code:
to enforce call
webPImage:withAlpha
method first and will fix this problem. I don't why, so could you help to fix this issue?THX
The text was updated successfully, but these errors were encountered: