NativeScript / NativeScript/nativescript-cli

resources generate images support

Open
#5,619 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.

When adding a new image resource to your project, it would be handy to be able to add one without going through https://images.nativescript.rocks/ or manually creating your own and placing them in the right folders.

Describe the solution you'd like

An extension of the resources generate command could be used that would act almost identically to the generate icons command, however it would use the original file name instead of "icon" when creating the different image sizes.

Describe alternatives you've considered

Making the generate icons command take another (optional) argument which allows an output name to be specified would also solve this issue

Anything else?

No response

Please accept these terms

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the resources generate command and its existing generate icons implementation. Extend the command to generate the image sizes using the original file name, or support an optional output name; done means a new image resource can be generated without external tooling or manual folder placement.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.