elegantapp / pwa-asset-generator

Automates PWA asset generation and image declaration. Automatically generates icon and splash screen images, favicons and mstile images. Updates manifest.json and index.html files with the generated images according to Web App Manifest specs and Apple Human Interface guidelines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create icons/splash screens for native applications

cviebrock opened this issue · comments

I've used pwa-asset-generator to create icons for PWAs, but I'm now using Ionic and Capacitor to create "native" apps. There are a few packages out there to help create the icons and splash screens for iOS and Android, but they all use a JPG/PNG image and just scale it appropriately. I really like the way pwa-asset-generator lets me use SVGs, linear gradients, CSS padding, etc. to make higher-quality assets. It would be great if the package worked for both PWAs and native apps.

https://www.npmjs.com/package/cordova-res is the recommended package to use, but it simply crops/resizes a single JPG/PNG file for both the icon and splash screen. Most other packages seem to work this way as well:

Thanks!