Fix/optimize images (#1688)
* add Dash-specific paths to `folders` in optimize-pngs.py * `mogrify src/qt/res/*/*/*.png` should fix "libpng error: IDAT: chunk data is too large" * `python contrib/devtools/optimize-pngs.py` "Total reduction: 500275 bytes"
@ -23,7 +23,7 @@ def content_hash(filename):
|
|||||||
|
|
||||||
pngcrush = 'pngcrush'
|
pngcrush = 'pngcrush'
|
||||||
git = 'git'
|
git = 'git'
|
||||||
folders = ["src/qt/res/movies", "src/qt/res/icons", "share/pixmaps"]
|
folders = ["src/qt/res/movies", "src/qt/res/icons", "src/qt/res/icons/crownium", "src/qt/res/icons/drkblue", "src/qt/res/icons/light", "src/qt/res/icons/trad", "src/qt/res/images", "src/qt/res/images/crownium", "src/qt/res/images/drkblue", "src/qt/res/images/light", "src/qt/res/images/trad", "share/pixmaps"]
|
||||||
basePath = subprocess.check_output([git, 'rev-parse', '--show-toplevel']).rstrip('\n')
|
basePath = subprocess.check_output([git, 'rev-parse', '--show-toplevel']).rstrip('\n')
|
||||||
totalSaveBytes = 0
|
totalSaveBytes = 0
|
||||||
noHashChange = True
|
noHashChange = True
|
||||||
|
BIN
share/pixmaps/dash128.png
Executable file → Normal file
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.2 KiB |
BIN
share/pixmaps/dash16.png
Executable file → Normal file
Before Width: | Height: | Size: 486 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 4.9 KiB |
BIN
share/pixmaps/dash32.png
Executable file → Normal file
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 551 B |
BIN
share/pixmaps/dash64.png
Executable file → Normal file
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 983 B |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 666 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 863 B After Width: | Height: | Size: 691 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 874 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 911 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 911 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 921 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 917 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 929 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 989 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 856 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 810 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 833 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 823 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 794 B |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 879 B |
Before Width: | Height: | Size: 846 B After Width: | Height: | Size: 617 B |
Before Width: | Height: | Size: 899 B After Width: | Height: | Size: 689 B |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 623 B |
Before Width: | Height: | Size: 840 B After Width: | Height: | Size: 657 B |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 617 B |
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 684 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 723 B After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 802 B After Width: | Height: | Size: 513 B |
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 577 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 994 B |
Before Width: | Height: | Size: 951 B After Width: | Height: | Size: 794 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 884 B After Width: | Height: | Size: 713 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 584 B After Width: | Height: | Size: 513 B |
Before Width: | Height: | Size: 591 B After Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1000 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 623 B |
Before Width: | Height: | Size: 883 B After Width: | Height: | Size: 676 B |
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 284 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 193 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 226 B |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 911 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 911 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 921 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 917 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 929 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 989 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 856 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 810 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 833 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 823 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 794 B |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 846 B After Width: | Height: | Size: 617 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 617 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 723 B After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 802 B After Width: | Height: | Size: 513 B |
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 577 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 994 B |
Before Width: | Height: | Size: 951 B After Width: | Height: | Size: 794 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |