summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-27 11:05:32 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-27 11:05:32 -0400
commit3c999f715ca70cea9de8e7fbc6d90cfc6d995e7e (patch)
treea386d7326708d43ac7effd01848535fbc2c3d88d
parentc8c5fdd97f2aca0455eb9f8f826bfc9cff970650 (diff)
official-2013/optimized-text: produce all nescessary graphics for the web
-rw-r--r--official-2013/optimized-text/Makefile28
-rw-r--r--official-2013/optimized-text/logo.svg (renamed from official-2013/optimized-text/favicon.svg)0
-rw-r--r--official-2013/readme.txt7
3 files changed, 25 insertions, 10 deletions
diff --git a/official-2013/optimized-text/Makefile b/official-2013/optimized-text/Makefile
index b857464..946a9ab 100644
--- a/official-2013/optimized-text/Makefile
+++ b/official-2013/optimized-text/Makefile
@@ -1,10 +1,10 @@
# SVG2PNG: Each is buggy in their own way
# ImageMagick: doesn't support transparency
-#SVG2PNG = convert $1 -format png $(if $3,-resize $3x)$(if $4,$4) $2
+#SVG2PNG = convert $1 -format png $(if $3,-resize $3x)$(if $4,$4) $(if $5,-bacground $5) $2
# librsvg: doesn't support <style> element
-#SVG2PNG = rsvg-convert $1 -o $2 $(if $3,-w $3) $(if $4,-h $4)
+SVG2PNG = rsvg-convert $1 -o $2 $(if $3,-w $3) $(if $4,-h $4) $(if $5,--background-color=$5)
# Inkscape: messes up gradients
-SVG2PNG = inkscape $1 --export-png $2 $(if $3,-w $3) $(if $4,-h $4)
+#SVG2PNG = inkscape $1 --export-png $2 $(if $3,-w $3) $(if $4,-h $4) $(if $5,-b '$5')
# PNG2ICO
# png2ico: doesn't read PNG transparency properly
@@ -16,15 +16,23 @@ PNG2ICO = icotool -c $1 -o $2
#PNGCRUSH = cp $1 $2
PNGCRUSH = pngcrush $1 $2
-all: \
- archlogo.png \
- favicon.ico \
+all: website \
+ logo.png \
logotype-color-darkbg.png \
logotype-color-lightbg.png \
logotype-grayscale.png \
logotype-mono-black.png \
logotype-mono-white.png \
+website: \
+ apple-touch-icon-57x57.png \
+ apple-touch-icon-72x72.png \
+ apple-touch-icon-114x114.png \
+ apple-touch-icon-144x144.png \
+ icon-transparent-64x64.png \
+ archlogo.png \
+ favicon.ico
+
clean:
rm -f *.png *.ico
@@ -37,5 +45,11 @@ clean:
%.ico: %.png Makefile
$(call PNG2ICO,$<,$@)
-favicon.png: %.png: %.svg Makefile
+favicon.raw.png: logo.svg Makefile
$(call SVG2PNG,$<,$@,16)
+
+apple-touch-icon-%.raw.png: logo.svg Makefile
+ $(call SVG2PNG,$<,$@,$(firstword $(subst x, ,$*)),$(lastword $(subst x, ,$*)),#ffffff)
+
+icon-transparent-%.raw.png: logo.svg Makefile
+ $(call SVG2PNG,$<,$@,$(firstword $(subst x, ,$*)),$(lastword $(subst x, ,$*)))
diff --git a/official-2013/optimized-text/favicon.svg b/official-2013/optimized-text/logo.svg
index 516d5f1..516d5f1 100644
--- a/official-2013/optimized-text/favicon.svg
+++ b/official-2013/optimized-text/logo.svg
diff --git a/official-2013/readme.txt b/official-2013/readme.txt
index c0c237e..12b03a3 100644
--- a/official-2013/readme.txt
+++ b/official-2013/readme.txt
@@ -8,10 +8,11 @@ Directories:
Araya Navarro ("Shackra").
`optimized-path` Optimized versions of the art with simpler SVG
source, that use <path> elements to draw the
- text.
+ text.
`optimized-text` Further simplified versions, that use <text> to
- draw the text. Also includes `archlogo` and
- `favicon` graphics for the website.
+ draw the text. Also includes a bare logo (not
+ logotype) and produces all derived graphics for the
+ website.
The `optimized-path` versions should render identically to the
originals (but Inkscape and copyright metadata isn't there).