-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Image asset size ignored, no scaling #1200
Comments
@gpeal Thanks for the fix.
The desired result would be to have a higher image quality for displays with high dpi. Right now, the resulting image is always of the same low quality no matter of the source image size (quality). Is there any way to increase the scaled image resolution for better quality? |
Have a same issue @gpeal On iOS, this is implemented without any additional settings. RESOLVED |
Heloc |
Currently, I am encountering a similar issue to [airbnb#1200](airbnb#1200), but in the case where the asset is a base64 image, it has not been fixed yet.
When using image assets in an animation, the image size defined in the .json is ignored. The image is not scaled to the defined width and height. It's displayed exactly as big as the image asset is.
In my example, the animation is
100x100
and the image asset is100x100 px
. If I use an image asset with200x200 px
(for a better resolution), only a part of the image is visible since it is not scaled to100x100
to fit in the animation view.{...,"assets":[{ "id":"image_0","w":100,"h":100,"u":"images/","p":"img_0.png","e":0 }],...}
Different
LottieAnimationView
configurations withscaleType
orlottie_scale
did not help.I know, image scaling is working on the iOS implementation. Is this not supported yet on Android?
The text was updated successfully, but these errors were encountered: