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

Image on all platforms #40

Open
victorteokw opened this issue May 9, 2015 · 1 comment
Open

Image on all platforms #40

victorteokw opened this issue May 9, 2015 · 1 comment

Comments

@victorteokw
Copy link
Owner

On every platform, image should be supported.
However, there are differences between platforms. For web platform, images are fetched from web, for local platform, some are, some are not.

Local images are always part of UI, while web images are always related to content and are dynamic.

On local platform, images gets its width and height just on create, however there is no way to get image's intrinsic size before the image is fetched.

Also, on local platform, different size versions of an image are provided, made it easy to work for different displays.

By using ImageMetadata, on web platform, we can get the behavior of local image.
Get width and height just on create.
Support @2x, default, @3x even much more!

For web images, native platform should support asynchronous loading and resizing.

victorteokw added a commit that referenced this issue May 9, 2015
@victorteokw
Copy link
Owner Author

Consider to load image at loading time on web platform.

Maybe optimize and compile the pngs into a big png.

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