Skip to content

[Image] Add scale support for base64-encoded image #1136

@cxfeng1-zz

Description

@cxfeng1-zz

Now TabBar component support base64-encoded data-uris for the icon, but it has a image scale problem. If I use 3X image, it will become too large for the tab bar.

2015-05-04 10 08 31

And if I use 1X image, it will become too fuzzy for the retina screen.

2015-05-04 10 10 39

The correct way should be like this:

2015-05-04 10 17 43

Maybe UIImage converter should support scale for base64-encoded image , let js tell the native what scale the image is, or just use 3X image and make the scale 3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions