-
Notifications
You must be signed in to change notification settings - Fork 630
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
Strange white overlay, when resizing some images with alpha channel #2422
Comments
You have to associate (premultiply) alpha before resampling and unassociate alpha after the operation if needed, this is required for correct blending. |
Also, I'd like to note that because hashing is involved, this implementation is not deterministic, just like in fast-image-resize. |
At very least the It's unfortunate that |
When testing differences of resizing in image-rs and fast_image_resize, I found that with some images wtih alpha channel, image-rs output is looking strange with additional whitish border
Left - original
Middle - fast_image_resize (5.1.2)
Right - image-rs (0.25.5)
Files - F.zip
I used this test project to test differences
https://github.com/qarmin/img_hash/blob/master/tools/test_resize_diff/src/main.rs
The text was updated successfully, but these errors were encountered: