Skip to content

Added broken image handling#32

Open
akhromets wants to merge 1 commit intoihor:masterfrom
akhromets:hotfix/broken-image
Open

Added broken image handling#32
akhromets wants to merge 1 commit intoihor:masterfrom
akhromets:hotfix/broken-image

Conversation

@akhromets
Copy link

  • Added broken image handling
  • Simplified return

@akhromets
Copy link
Author

When the image is broken Image.resolveAssetSource returns 0 for both the height and the width properties. As a result, we have an Infinity as a ratio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant