An open API service indexing awesome lists of open source software.

https://github.com/alx741/nsresgen

NativeScript Resources Generator
https://github.com/alx741/nsresgen

generator nativescript resources

Last synced: about 2 months ago
JSON representation

NativeScript Resources Generator

Awesome Lists containing this project

README

          

# NativeScript Resources Generator

Helper script to generate [NativeScript](https://www.nativescript.org/) image
resources for both Android and iOS from an image.

Executing the script with an image path as parameter, it will generate all the
necessary image sizes and automatically populate the `app/App_Resouces`
directory tree.

## Usage

Install the script:

$ sudo cp nsresgen.sh /usr/local/bin/nsresgen

And invoke it while inside the root directory of a NativeScript project, passing
an image as parameter:

$ nsresgen /home/user/cats/image.png

The `app/App_Resources` directory will be correctly populated, so you're now
able to use the resource from your code as usual:

```xml

```

## Dependencies

The *nsresgen* script depends upon the **imagemagick** package, so be sure to
have it in your system.