The image gets slightly distorted on pixel perfect images
See original GitHub issueHi everyone! Here’s a very picky image distortion bug.
I have a 56dp widget with an 8dp padding. On the other side, I have pixel-perfect images made at 40dp (it’s 56dp - 8dp * 2 sides).
If I apply those images to an ImageView
, the result is pixel-perfect. But if I replace that ImageView
with a CircleImageView
, the result is not pixel-perfect anymore.
Thinking about it, I think that CircleImageView
is getting the 40dp image, then resizing it to 56dp, and then applying the padding and resizing the image again to 40dp.
Here are some screenshots. First a comparison, and then a screenshot of every case:
Comparing side by side:
Using the plain ImageView
:
Using CircleImageView
:
By the way, I’m using a local .png file. No network or strange things there.
Thanks again for your work! And happy New Year 😃 🎆 🎆 🎆
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
v3.1.0
with the change is released and should be available on MavenCentral and jCenter.Awesome! Thanks for that quick release, @hdodenhof
Releasing to production in 3, 2, 1… 😄