From 7c8f9108ffddc602de16b0d66210dee001586a59 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Tue, 5 May 2015 17:38:13 -0700 Subject: pyblog: implement preview Also tweaked icons a bit. Note that this commit doesn't really work: I implemented a "stoppable HTTP Server" here to be stopped when "mother process" receives SIGINT (i.e., KeyboardInterrupt), without realizing that all porcesses get SIGINT. Therefore, the custom server is hardly needed. See http://git.io/vJ9yA for more information. (This implementation has some value tought, that's why I'm committing to keep it in history.) --- source/img/README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/img/README.rst') diff --git a/source/img/README.rst b/source/img/README.rst index be3eabf7..7e902808 100644 --- a/source/img/README.rst +++ b/source/img/README.rst @@ -2,9 +2,9 @@ The icon and favicon files are generated via the following commands: :: cd source/img xelatex icon.tex - convert icon.pdf -quality 400 -resize 100x100 icon.png + for size in 100 400; do convert icon.pdf -quality 400 -resize ${size}x${size} icon-${size}.png; done for size in 16 32 48 144 152; do convert icon.pdf -density 400 -resize ${size}x${size} favicon-${size}.png; done - optipng favicon-16.png favicon-32.png favicon-48.png favicon-144.png favicon-152.png + optipng favicon-16.png favicon-32.png favicon-48.png favicon-144.png favicon-152.png icon-100.png icon-400.png convert favicon-16.png favicon-32.png favicon-48.png ../favicon.ico rm favicon-16.png favicon-32.png favicon-48.png -- cgit v1.2.1