aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-10-13 11:50:25 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-10-13 11:50:26 +0200
commit16faccb736ab23aec0a325133b4e0caf91dd8d52 (patch)
treec5de0f087cf918e3dc69c74d196bf6d6af132190 /contrib
parent01f74999e3dff1b0c76c334ce3935e3680d2927d (diff)
parentd0321a4cfdd660b8335b5d7f14556fb2ec60af22 (diff)
downloadbitcoin-16faccb736ab23aec0a325133b4e0caf91dd8d52.tar.xz
Merge pull request #6791
d0321a4 [doc] trivial: fix markdown syntax in qa/rpc-tests/README.md (MarcoFalke) 60a8b70 [doc] trivial: developer-notes.md covers more than just coding standards (MarcoFalke) 3507992 [trivial] Make optimize-pngs.py also cover share/pixmaps (MarcoFalke) 8a320c7 [trivial] Remove obsolete share/qt/make_windows_icon.sh (MarcoFalke)
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/devtools/optimize-pngs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/devtools/optimize-pngs.py b/contrib/devtools/optimize-pngs.py
index b6d6a097d6..799e0cc7d0 100755
--- a/contrib/devtools/optimize-pngs.py
+++ b/contrib/devtools/optimize-pngs.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
'''
-Run this scrip every time you change one of the png files. Using pngcrush, it will optimize the png files, remove various color profiles, remove ancillary chunks (alla) and text chunks (text).
+Run this script every time you change one of the png files. Using pngcrush, it will optimize the png files, remove various color profiles, remove ancillary chunks (alla) and text chunks (text).
#pngcrush -brute -ow -rem gAMA -rem cHRM -rem iCCP -rem sRGB -rem alla -rem text
'''
import os
@@ -18,12 +18,12 @@ def content_hash(filename):
'''Return hash of RGBA contents of image'''
i = Image.open(filename)
i = i.convert('RGBA')
- data = i.tostring()
+ data = i.tobytes()
return hashlib.sha256(data).hexdigest()
pngcrush = 'pngcrush'
git = 'git'
-folders = ["src/qt/res/movies", "src/qt/res/icons"]
+folders = ["src/qt/res/movies", "src/qt/res/icons", "share/pixmaps"]
basePath = subprocess.check_output([git, 'rev-parse', '--show-toplevel']).rstrip('\n')
totalSaveBytes = 0
noHashChange = True