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
- Host: GitHub
- URL: https://github.com/alx741/nsresgen
- Owner: alx741
- Created: 2017-04-28T20:03:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T00:24:13.000Z (almost 8 years ago)
- Last Synced: 2025-05-17T17:07:26.973Z (about 1 year ago)
- Topics: generator, nativescript, resources
- Language: Shell
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.