[SvgDecoder][getDstSize] dstWidth and dstHeight are not translated to px #1455
MakarenkoVlad
started this conversation in
General
Replies: 2 comments 2 replies
-
Maybe you can add a new method for ImageRequest.Builder().scale that can take a ratio? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hmm for something custom like this I think you might have to create a custom version of |
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
-
Main point here is to load icon with its svg size. But, we have only few options to load picture: scaled to icon bounds, with predefined size, with original size in px. But we want this px translated to dp and again to px for its equal look on different devices.
Please, do not close this issue without discussion
For original size dstWidth and dstHeight are not translated to pixels before returning from getDstSize method. That leads to smaller image size which is not correct.
Prerequisites:
Steps to reproduce:
Implement such code for image download
Problem place:
With compose density it could be implemented like this
Possible fix:
Beta Was this translation helpful? Give feedback.
All reactions