About the differences after comparing two images mse values in avif and png formats with ImageLoader.Builder and ImageRequest.Builder #2891
Unanswered
sinabirdevrim
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Android's graphics algorithms can (and do) change between API levels and devices. Unfortunately I don't think it's possible to get 100% consistency. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using Coil 3 with ImageLoader.Builder and ImageRequest.Builder to obtain the bitmap values of two identical images in different formats—one in AVIF and the other in PNG. I then calculate the MSE (Mean Squared Error) differences between them.
I noticed that the calculation results are the same on Samsung S21 Ultra and S22 Ultra but different on the S23. When I specify a fixed size, the problem seems to be resolved, but I still see inconsistencies on some devices.
I'm curious why device-specific bitmap variations occur even when I provide a fixed size or not, and how I can resolve this issue.
`
ImageRequest.Builder(context)
.bitmapConfig(Bitmap.Config.ARGB_8888)
.size(500)
.memoryCachePolicy(CachePolicy.DISABLED)
.diskCachePolicy(CachePolicy.DISABLED)
`
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions