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 ++-- source/img/icon-100.png | Bin 0 -> 6920 bytes source/img/icon-400.png | Bin 0 -> 31432 bytes source/img/icon.png | Bin 6920 -> 0 bytes 4 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 source/img/icon-100.png create mode 100644 source/img/icon-400.png delete mode 100644 source/img/icon.png (limited to 'source/img') 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 diff --git a/source/img/icon-100.png b/source/img/icon-100.png new file mode 100644 index 00000000..7745469c Binary files /dev/null and b/source/img/icon-100.png differ diff --git a/source/img/icon-400.png b/source/img/icon-400.png new file mode 100644 index 00000000..9969f26c Binary files /dev/null and b/source/img/icon-400.png differ diff --git a/source/img/icon.png b/source/img/icon.png deleted file mode 100644 index 5f1f894b..00000000 Binary files a/source/img/icon.png and /dev/null differ -- cgit v1.2.1