Archived
1
0

media: Improve icon size (#2401)

See https://github.com/cdr/code-server/pull/2383#issuecomment-738024951
This commit is contained in:
Anmol Sethi
2020-12-04 11:31:45 -05:00
committed by GitHub
parent 6c67dc7ce1
commit 6738cff544
6 changed files with 6 additions and 4 deletions

View File

@ -13,9 +13,11 @@ main() {
# -background defaults to white but we want it transparent.
# https://imagemagick.org/script/command-line-options.php#background
convert -background transparent -resize 256x256 favicon.svg favicon.ico
convert -background transparent -resize 192x192 favicon.svg pwa-icon-192.png
convert -background transparent -resize 512x512 favicon.svg pwa-icon-512.png
convert -quiet -background transparent -resize 256x256 favicon.svg favicon.ico
convert -quiet -background transparent -resize 192x192 pwa-icon.png pwa-icon-192.png
convert -quiet -background transparent -resize 512x512 pwa-icon.png pwa-icon-512.png
# We use -quiet above to avoid https://github.com/ImageMagick/ImageMagick/issues/884
}
main "$@"