Skip to content

Generate resources from a single image for use in res:// URLs #4416

@bundyo

Description

@bundyo

Is your feature request related to a problem? Please describe.
In order to to use res:// URLs in the app, a developer has to start an image editing program and create all the different images for the different resource folders in all platforms. It will be good if CLI/Sidekick provide a way to generate all these images and place them in their designated folders with just one image with sufficiently high resolution.

Describe the solution you'd like
Do something like

tns resources add menu.png

This should generate menu.pngs with different resolutions for Android and place them in drawable-hdpi, drawable-xhdpi, etc. folders and menu.png, menu@2x.png, menu@3x.png and place them in the iOS folder.

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