This script generates all required image sizes from public/logo.png.
favicon.png(32x32) - Browser faviconapple-touch-icon.png(180x180) - iOS home screen iconog-image.jpg(1200x630) - Open Graph image for social sharingicon-192.png(192x192) - PWA icon (small)icon-512.png(512x512) - PWA icon (large)
-
Install Sharp:
npm install --save-dev sharp
-
Run the script:
npm run generate-images
-
Install ImageMagick:
# macOS brew install imagemagick # Linux sudo apt-get install imagemagick
-
Run the script:
npm run generate-images
The script will automatically detect which tool is available and use it.
public/logo.pngmust exist- Either Sharp (npm package) or ImageMagick (system tool) must be installed