Skip to content
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

Assets in <Image> sometimes render a placeholder when the dimensions are "wrong" #78

Open
sampurcell93 opened this issue Nov 2, 2017 · 3 comments

Comments

@sampurcell93
Copy link

sampurcell93 commented Nov 2, 2017

Hi, I've noticed that sometimes, the size of my images affects if they're rendered at all. For example, giving an image {width: 100, height: 100} works fine, but {width: 75, height: 100} does not work. It renders a JPG placeholder instead. How can I go about fixing this? I noticed the prepareForSizeDisplay param but I am not sure if it will help or how to format it.

Thanks!

@sampurcell93
Copy link
Author

PS: I noticed that the only photos this happens to seem to be photos that returned originally with an "unknown" type. Any insight as to why unknown is returned some times?

@sampurcell93
Copy link
Author

PPS: It seems that "unknown types" are mostly Live Photos (.mov files when you get right down to it) that the lib doesn't recognize.

@sampurcell93
Copy link
Author

sampurcell93 commented Nov 3, 2017

PPS: Live photos are unknown only in iOS versions less than 10, it seems. In ios10+ they return with image/heic as their mimetype... I'll make a PR adding some of this to the docs!

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

No branches or pull requests

1 participant