diff --git a/assets/adb_enhanced.png b/assets/adb_enhanced.png index f28b84d..d8ab19c 100644 Binary files a/assets/adb_enhanced.png and b/assets/adb_enhanced.png differ diff --git a/assets/angr.png b/assets/angr.png index 0662f72..6acc812 100644 Binary files a/assets/angr.png and b/assets/angr.png differ diff --git a/assets/astropy.png b/assets/astropy.png index 7154327..fa98b28 100644 Binary files a/assets/astropy.png and b/assets/astropy.png differ diff --git a/assets/axelrod.png b/assets/axelrod.png index a594ccb..ddde655 100644 Binary files a/assets/axelrod.png and b/assets/axelrod.png differ diff --git a/assets/biobuilds.png b/assets/biobuilds.png index 57af569..d5d2a8c 100644 Binary files a/assets/biobuilds.png and b/assets/biobuilds.png differ diff --git a/assets/biopython.png b/assets/biopython.png index 5cc0f45..5b67332 100644 Binary files a/assets/biopython.png and b/assets/biopython.png differ diff --git a/assets/bokeh.png b/assets/bokeh.png index b897f3b..f93789b 100644 Binary files a/assets/bokeh.png and b/assets/bokeh.png differ diff --git a/assets/ccxt.png b/assets/ccxt.png index 9be0e32..5e6715e 100644 Binary files a/assets/ccxt.png and b/assets/ccxt.png differ diff --git a/assets/chaquopy.png b/assets/chaquopy.png index 4413744..793b5e5 100644 Binary files a/assets/chaquopy.png and b/assets/chaquopy.png differ diff --git a/assets/cmd2.png b/assets/cmd2.png index 2946f0c..383230c 100644 Binary files a/assets/cmd2.png and b/assets/cmd2.png differ diff --git a/assets/dateutil.png b/assets/dateutil.png index 4730a29..e09306b 100644 Binary files a/assets/dateutil.png and b/assets/dateutil.png differ diff --git a/assets/fecon235.png b/assets/fecon235.png index 9c2ad19..5a2876a 100644 Binary files a/assets/fecon235.png and b/assets/fecon235.png differ diff --git a/assets/fenics.png b/assets/fenics.png index 9b93faa..f08e4a1 100644 Binary files a/assets/fenics.png and b/assets/fenics.png differ diff --git a/assets/fonttools.png b/assets/fonttools.png index 47d5765..702a4e0 100644 Binary files a/assets/fonttools.png and b/assets/fonttools.png differ diff --git a/assets/freud.png b/assets/freud.png index 1304252..7eec244 100644 Binary files a/assets/freud.png and b/assets/freud.png differ diff --git a/assets/geopy.png b/assets/geopy.png index aa67609..234c4e2 100644 Binary files a/assets/geopy.png and b/assets/geopy.png differ diff --git a/assets/ipython.png b/assets/ipython.png index 2473054..6b771e2 100644 Binary files a/assets/ipython.png and b/assets/ipython.png differ diff --git a/assets/jupyter.png b/assets/jupyter.png index 3446780..fa2b603 100644 Binary files a/assets/jupyter.png and b/assets/jupyter.png differ diff --git a/assets/kivy.png b/assets/kivy.png index 9df4c87..d5e792a 100644 Binary files a/assets/kivy.png and b/assets/kivy.png differ diff --git a/assets/matplotlib.png b/assets/matplotlib.png index 2704f25..5545efb 100644 Binary files a/assets/matplotlib.png and b/assets/matplotlib.png differ diff --git a/assets/metpy.png b/assets/metpy.png index 4901dce..910f3fe 100644 Binary files a/assets/metpy.png and b/assets/metpy.png differ diff --git a/assets/mitmproxy.png b/assets/mitmproxy.png index f2c5184..1f83b4e 100644 Binary files a/assets/mitmproxy.png and b/assets/mitmproxy.png differ diff --git a/assets/mne.png b/assets/mne.png index fa720bf..6e4b719 100644 Binary files a/assets/mne.png and b/assets/mne.png differ diff --git a/assets/nengo.png b/assets/nengo.png index bf28bbc..0512687 100644 Binary files a/assets/nengo.png and b/assets/nengo.png differ diff --git a/assets/nikola.png b/assets/nikola.png index d142fac..cf97537 100644 Binary files a/assets/nikola.png and b/assets/nikola.png differ diff --git a/assets/openquake.png b/assets/openquake.png index a61c2fb..da64ba1 100644 Binary files a/assets/openquake.png and b/assets/openquake.png differ diff --git a/assets/osbrain.png b/assets/osbrain.png index fa3e07e..21877c6 100644 Binary files a/assets/osbrain.png and b/assets/osbrain.png differ diff --git a/assets/pandas.png b/assets/pandas.png index cb3898a..8fc9c9c 100644 Binary files a/assets/pandas.png and b/assets/pandas.png differ diff --git a/assets/pillow.png b/assets/pillow.png index 326332a..3e0b2bd 100644 Binary files a/assets/pillow.png and b/assets/pillow.png differ diff --git a/assets/psi4square.png b/assets/psi4square.png index a29c5d2..55c9f10 100644 Binary files a/assets/psi4square.png and b/assets/psi4square.png differ diff --git a/assets/pylast.png b/assets/pylast.png index 6600dae..8c12ab8 100644 Binary files a/assets/pylast.png and b/assets/pylast.png differ diff --git a/assets/pymc3.png b/assets/pymc3.png index 5aa2244..a6f4af2 100644 Binary files a/assets/pymc3.png and b/assets/pymc3.png differ diff --git a/assets/pymeasure.png b/assets/pymeasure.png index 92a9618..4a61c63 100644 Binary files a/assets/pymeasure.png and b/assets/pymeasure.png differ diff --git a/assets/pyscipopt.png b/assets/pyscipopt.png index ed578c3..c366391 100644 Binary files a/assets/pyscipopt.png and b/assets/pyscipopt.png differ diff --git a/assets/pystan.png b/assets/pystan.png index c5310a0..508f02d 100644 Binary files a/assets/pystan.png and b/assets/pystan.png differ diff --git a/assets/pytest1.png b/assets/pytest1.png index e8064a6..3e230b2 100644 Binary files a/assets/pytest1.png and b/assets/pytest1.png differ diff --git a/assets/pythran.png b/assets/pythran.png index 7a49710..b34ed84 100644 Binary files a/assets/pythran.png and b/assets/pythran.png differ diff --git a/assets/rdkit.png b/assets/rdkit.png index 00e70a6..681fe63 100644 Binary files a/assets/rdkit.png and b/assets/rdkit.png differ diff --git a/assets/requests.png b/assets/requests.png index 6579106..1825daf 100644 Binary files a/assets/requests.png and b/assets/requests.png differ diff --git a/assets/rpy2_logo_64x64.png b/assets/rpy2_logo_64x64.png index cd13ae5..786fd43 100644 Binary files a/assets/rpy2_logo_64x64.png and b/assets/rpy2_logo_64x64.png differ diff --git a/assets/saltstack.png b/assets/saltstack.png index 4d15467..4efa052 100644 Binary files a/assets/saltstack.png and b/assets/saltstack.png differ diff --git a/assets/scikit-image.png b/assets/scikit-image.png index 2d630cf..4e57777 100644 Binary files a/assets/scikit-image.png and b/assets/scikit-image.png differ diff --git a/assets/scikit-learn.png b/assets/scikit-learn.png index a20d525..0c9fda6 100644 Binary files a/assets/scikit-learn.png and b/assets/scikit-learn.png differ diff --git a/assets/scipyshiny_small.png b/assets/scipyshiny_small.png index 7ef81a9..e94c78b 100644 Binary files a/assets/scipyshiny_small.png and b/assets/scipyshiny_small.png differ diff --git a/assets/signac.png b/assets/signac.png index a900d40..ba642c1 100644 Binary files a/assets/signac.png and b/assets/signac.png differ diff --git a/assets/skbio.png b/assets/skbio.png index dbc475d..6fa4a82 100644 Binary files a/assets/skbio.png and b/assets/skbio.png differ diff --git a/assets/spyder.png b/assets/spyder.png index 82d9508..a42b54b 100644 Binary files a/assets/spyder.png and b/assets/spyder.png differ diff --git a/assets/sunpy.png b/assets/sunpy.png index f39a552..1a8ae58 100644 Binary files a/assets/sunpy.png and b/assets/sunpy.png differ diff --git a/assets/swcarpentry.png b/assets/swcarpentry.png index 3d648f6..cb3dd53 100644 Binary files a/assets/swcarpentry.png and b/assets/swcarpentry.png differ diff --git a/assets/sympy.png b/assets/sympy.png index 732662f..019b693 100644 Binary files a/assets/sympy.png and b/assets/sympy.png differ diff --git a/assets/tensorflow.png b/assets/tensorflow.png index c745781..558ea62 100644 Binary files a/assets/tensorflow.png and b/assets/tensorflow.png differ diff --git a/assets/tensorpack.png b/assets/tensorpack.png index 2eea129..509ff5b 100644 Binary files a/assets/tensorpack.png and b/assets/tensorpack.png differ diff --git a/assets/tornado.png b/assets/tornado.png index a920aa5..eefd83b 100644 Binary files a/assets/tornado.png and b/assets/tornado.png differ diff --git a/assets/toyplot-256x256.png b/assets/toyplot-256x256.png index a159a2f..f846ada 100644 Binary files a/assets/toyplot-256x256.png and b/assets/toyplot-256x256.png differ diff --git a/assets/tryton.png b/assets/tryton.png index bc3d0ab..788206f 100644 Binary files a/assets/tryton.png and b/assets/tryton.png differ diff --git a/assets/xarray.png b/assets/xarray.png index dab0194..cbbbf66 100644 Binary files a/assets/xarray.png and b/assets/xarray.png differ diff --git a/assets/xonsh.png b/assets/xonsh.png index d8288d2..a6c0da9 100644 Binary files a/assets/xonsh.png and b/assets/xonsh.png differ diff --git a/assets/yt.png b/assets/yt.png index 67a3e3b..0cdb69f 100644 Binary files a/assets/yt.png and b/assets/yt.png differ diff --git a/assets/zulip.png b/assets/zulip.png index e6fe8ab..c72d924 100644 Binary files a/assets/zulip.png and b/assets/zulip.png differ diff --git a/img/bgnoise.png b/img/bgnoise.png index 2912433..84e036b 100644 Binary files a/img/bgnoise.png and b/img/bgnoise.png differ diff --git a/scripts/squash-images.sh b/scripts/squash-images.sh new file mode 100755 index 0000000..ec9047f --- /dev/null +++ b/scripts/squash-images.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# pip install pillow +python3 scripts/thumbnail-images.py + +# https://pngquant.org/ +# On Mac: brew install pngquant + +# Options: +# --ext .png Output to same filename, don't append anything else +# --force Overwrite existing output files +# --speed 1 Slow speed, best quality +# --strip Remove optional metadata + +pngquant --ext .png --force --speed 1 --strip assets/*.png img/*.png diff --git a/scripts/thumbnail-images.py b/scripts/thumbnail-images.py new file mode 100644 index 0000000..8dd3dd4 --- /dev/null +++ b/scripts/thumbnail-images.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python3 +# encoding: utf-8 +""" +Thumbnail images to a maximum of 320px wide and 160px high +""" +import glob + +from PIL import Image # pip install pillow + +max_size = 320, 160 + +# Exclude these images from thumbnailing +excludes = ["assets/signac.png"] + +for infile in glob.glob("assets/*.png"): + if infile in excludes: + continue + im = Image.open(infile) + if im.width <= max_size[0] and im.height <= max_size[1]: + continue + im.thumbnail(max_size) + im.save(infile)