aboutsummaryrefslogtreecommitdiff
path: root/source/img
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-05-05 17:38:13 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-05-05 17:43:20 -0700
commit7c8f9108ffddc602de16b0d66210dee001586a59 (patch)
tree7b114187f12cef0c15dafacf0414feb9d2c3bd46 /source/img
parent18e4dca08782177125d032620499ceab1456b9e3 (diff)
downloadmy_new_personal_website-7c8f9108ffddc602de16b0d66210dee001586a59.tar.xz
my_new_personal_website-7c8f9108ffddc602de16b0d66210dee001586a59.zip
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.)
Diffstat (limited to '')
-rw-r--r--source/img/README.rst4
-rw-r--r--source/img/icon-100.png (renamed from source/img/icon.png)bin6920 -> 6920 bytes
-rw-r--r--source/img/icon-400.pngbin0 -> 31432 bytes
3 files changed, 2 insertions, 2 deletions
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.png b/source/img/icon-100.png
index 5f1f894b..7745469c 100644
--- a/source/img/icon.png
+++ b/source/img/icon-100.png
Binary files differ
diff --git a/source/img/icon-400.png b/source/img/icon-400.png
new file mode 100644
index 00000000..9969f26c
--- /dev/null
+++ b/source/img/icon-400.png
Binary files differ