You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found an issue that seemed to be caused by RoundingParams, but was actually related to the mTargetDensity of the BitmapDrawable which used in RoundedBitmapDrawable
When the density changed by App-Self, the issue maybe appeared.
e.g. AndroidAutoSize
I want to getting this:
But got this:
Reproduction
Reason
The "blown-up" effect is the result of the updateTransform function:
The density of the bitmap which is created in DefaultDecoder is default, but when update transform in RoundedDrawable will use resource density which is changed by App-Self to measure transform
Expected
Now, I solved it, by updating density of bitmap in some custom class, such as DrawableFactory or Postprocessor, but it's probably not safe, I hope to get a formal solution
The text was updated successfully, but these errors were encountered:
armanniu010
changed the title
Picture just get "blown up" when I use RoundingParams to get a rounded corner picture
Picture just get "blown-up" when I use RoundingParams to get a rounded corner picture
Mar 17, 2024
Description
I found an issue that seemed to be caused by RoundingParams, but was actually related to the mTargetDensity of the BitmapDrawable which used in RoundedBitmapDrawable
When the density changed by App-Self, the issue maybe appeared.
e.g. AndroidAutoSize
I want to getting this:
But got this:
Reproduction
Reason
The "blown-up" effect is the result of the updateTransform function:
fresco/drawee/src/main/java/com/facebook/drawee/drawable/RoundedDrawable.java
Line 236 in ba69654
Trace the following code:
fresco/drawee/src/main/java/com/facebook/drawee/drawable/RoundedBitmapDrawable.java
Line 45 in 19c695f
Bitmap which used in RoundedBitmapDrawable was from this code:
fresco/imagepipeline/src/main/java/com/facebook/imagepipeline/platform/DefaultDecoder.java
Line 276 in ba69654
The density of the bitmap which is created in DefaultDecoder is default, but when update transform in RoundedDrawable will use resource density which is changed by App-Self to measure transform
Expected
Now, I solved it, by updating density of bitmap in some custom class, such as DrawableFactory or Postprocessor, but it's probably not safe, I hope to get a formal solution
The text was updated successfully, but these errors were encountered: