0.0.10 • Published 4 years ago
create-launch-images v0.0.10
create-launch-images
Create Android-like launch images for iOS PWA’s based on a Web App Manifest.
Usage
$ npx create-launch-images --help
Create Android-like launch images for iOS PWA’s based on a Web App Manifest.
Usage
$ npx create-launch-images <manifest-url>
Options
--outputDir, -o Output directory
--addRadius, -r Add a radius to the app icon (prefers maskable icons)
--font, -f Text font family
Example
$ npx create-launch-images https://airhorner.com/manifest.jsonOptional installation
Using npm:
npm install create-launch-images --globalUsing yarn:
yarn global add create-launch-imagesFAQ
“How can I achieve the best results?”
- Add icons with
purpose: 'maskable'to your manifest and apply the--addRadiusflag. - Install SF Pro Display locally for a font matching with the system UI.
“Which properties of my Web App Manifest are parsed?”
- The
nameproperty is used for the app name. - The
iconsproperty is used for the app icon. The largest square PNG icon will be used. If theaddRadiusflag is set, the largest icon with apurposeproperty ofmaskablewill be used. - The
background_colorproperty is used for the image’s background color. Falls back towhite. - The
orientationproperty is used for the output formats (portrait, landscape or both).
Examples
License
MIT © Marc Görtz