mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
688dc2c6e8
The pngs could be generated from inkascape in a loop, though for reason X or Y, inkscape 0.91 refuse it. The command to generate the icns is iconutil -c icns -o ipynb.icns ipynb.iconset - yes the folder have to be named icon.iconset, because apple - yes the file icon_111x111@2x.png is the same than icon_222x222.png but the @2x make a difference on retina screen, because apple right now in **some conditions** the iconutils fails with out of memory. we should try to pngcrush some images.
17 lines
921 B
Bash
Executable File
17 lines
921 B
Bash
Executable File
#!/bin/bash
|
|
INKSCAPE=inkscape
|
|
|
|
${INKSCAPE} -z -C --file=ipynb_icon_16x16.svg --export-png=ipynb_icon_16x16_uncrush.png
|
|
${INKSCAPE} -z -C --file=ipynb_icon_24x24.svg --export-png=ipynb_icon_24x24_uncrush.png
|
|
${INKSCAPE} -z -C --file=ipynb_icon_32x32.svg --export-png=ipynb_icon_32x32_uncrush.png
|
|
${INKSCAPE} -z -C --file=ipynb_icon_512x512.svg --export-png=ipynb_icon_64x64_uncrush.png -w 64 -h 64
|
|
${INKSCAPE} -z -C --file=ipynb_icon_512x512.svg --export-png=ipynb_icon_128x128_uncrush.png -w 128 -h 128
|
|
${INKSCAPE} -z -C --file=ipynb_icon_512x512.svg --export-png=ipynb_icon_256x256_uncrush.png -w 256 -h 256
|
|
${INKSCAPE} -z -C --file=ipynb_icon_512x512.svg --export-png=ipynb_icon_512x512_uncrush.png -w 512 -h 512
|
|
|
|
|
|
for file in `ls *_uncrush.png`; do
|
|
pngcrush -brute -l 9 -reduce -rem alla -rem text -rem time -rem gAMA -rem cHRM -rem iCCP -rem sRGB $file `basename $file _uncrush.png`.png
|
|
rm $file
|
|
done
|