From: Yaroslav Halchenko Date: Thu, 17 Oct 2013 18:23:31 +0000 (-0400) Subject: ENH: Serve institution icons at height 50 size X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=64548f5064ce6334dc4cef9a4d7cba6b2b2ad4fc;p=neurodebian.git ENH: Serve institution icons at height 50 size otherwise loads longer and looks ugly on firefox not doing nice interpolation --- diff --git a/Makefile b/Makefile index 256bdfc..e9205fd 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ pics: html: pics source rsync -rvlhpt sphinx/ build/src - cd artwork; cp button_w200.png logo_tuned/fmri_w200.png uni-md-logo.png ccn-logo.png ../build/src/_static; cd .. + cd artwork; cp button_w200.png logo_tuned/fmri_w200.png uni-md-logo_h50.png ccn-logo_h50.png ../build/src/_static; cd .. cp 3rd/jquery.livetwitter/jquery.livetwitter.min.js build/src/_static cp neurodebian.cfg build/src/_static cd build/src && $(MAKE) html BUILDDIR=$(CURDIR)/build 2>&1 diff --git a/artwork/.gitignore b/artwork/.gitignore index 320616a..1ec65ae 100644 --- a/artwork/.gitignore +++ b/artwork/.gitignore @@ -13,3 +13,5 @@ banner.pdf qrcode_sticker.pdf qrcode_sticker.png derivatives.png +ccn-logo_h50.png +uni-md-logo_h50.png diff --git a/artwork/Makefile b/artwork/Makefile index c6b7713..4872ee8 100644 --- a/artwork/Makefile +++ b/artwork/Makefile @@ -1,12 +1,14 @@ all:: pics SVGIS=$(shell /bin/ls *.svgtune | sed -e 's/.svgtune/_tuned/g') +ICONSIZED=ccn-logo_h50.png uni-md-logo_h50.png -pics: $(SVGIS) +pics: $(SVGIS) $(ICONSIZED) clean:: for p in *.svg; do rm -f $${p%*.svg}.{pdf,eps,png}; done rm -rf *_tuned + rm -f $(ICONSIZED) ignore-%: @grep -q "^$*$$" .gitignore || { \ @@ -28,6 +30,10 @@ ignore-%: @echo "Rendering $@" @inkscape -z -f "$<" -e "$@" -w 200 +# icon sized versions +%_h50.png: %.png ignore-%_h50.png + @echo "Generating downscaled $@" + @convert -geometry x50 "$<" "$@" # Some enforced conversions to overcome problems with transparency issues # in PDFs diff --git a/sphinx/_templates/layout.html b/sphinx/_templates/layout.html index 2b63bda..4cbb004 100644 --- a/sphinx/_templates/layout.html +++ b/sphinx/_templates/layout.html @@ -29,8 +29,8 @@
{% endblock %}