Skip to content

Since ExecuteCallback is not available anymore, what's the equivalent to the code below? #1312

Answered by colinrtwhite
TonnyL asked this question in Q&A
Discussion options

You must be logged in to vote

current.size is not the original size of the image - it's the size returned from SizeResolver.size. It's currently not possible to get the image's original size from Coil's ImageResult. You could theoretically parse it yourself by setting a custom Decoder.Factory, parsing the ImageSource then returning null so the next decoder performs the decode.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by colinrtwhite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants