diff options
author | Volpeon <git@volpeon.ink> | 2021-12-27 10:59:12 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-12-27 10:59:12 +0100 |
commit | 4ce55d23b374ecad1ae9df60ed7f2acaf16ab33a (patch) | |
tree | 0594130ddf26a4c679285dff5c057a4640f60f84 | |
parent | Don't generate snow if tab is inactive (diff) | |
download | volpeon.ink-4ce55d23b374ecad1ae9df60ed7f2acaf16ab33a.tar.gz volpeon.ink-4ce55d23b374ecad1ae9df60ed7f2acaf16ab33a.tar.bz2 volpeon.ink-4ce55d23b374ecad1ae9df60ed7f2acaf16ab33a.zip |
Add thumbnail compression
29 files changed, 24 insertions, 14 deletions
@@ -112,11 +112,15 @@ out/%.xml: content/%.md .cache/meta/%.json $(FEED_TEMPLATES_SRC) metadata/*.yaml | |||
112 | $(PANDOC_FILTERS) \ | 112 | $(PANDOC_FILTERS) \ |
113 | -o "$@" "$<" | 113 | -o "$@" "$<" |
114 | 114 | ||
115 | out/%: content/% | out | 115 | out/%/thumbnail.png: content/%/thumbnail.png | out |
116 | $(info [COPY] $< -> $@) | 116 | $(info [THMB] $< -> $@) |
117 | 117 | ||
118 | mkdir -p $(@D) | 118 | convert -thumbnail 360x200^ -gravity center -extent 360x200 "$<" png:- | pngquant -o "$@" - |
119 | cp "$<" "$@" | 119 | |
120 | out/%/thumbnail.jpg: content/%/thumbnail.jpg | out | ||
121 | $(info [THMB] $< -> $@) | ||
122 | |||
123 | convert -thumbnail 360x200^ -gravity center -extent 360x200 "$<" ppm:- | cjpeg -quality 80 > "$@" | ||
120 | 124 | ||
121 | out/%.woff2: assets/fonts/%.ttf assets/fonts/glyphs.txt | out | 125 | out/%.woff2: assets/fonts/%.ttf assets/fonts/glyphs.txt | out |
122 | $(info [FONT] $< -> $@) | 126 | $(info [FONT] $< -> $@) |
@@ -132,6 +136,12 @@ out/%.css: assets/css/%.scss $(CSS_SRC) | out | |||
132 | 136 | ||
133 | sass "$<" | ./node_modules/.bin/postcss --use postcss-csso autoprefixer --no-map > "$@" | 137 | sass "$<" | ./node_modules/.bin/postcss --use postcss-csso autoprefixer --no-map > "$@" |
134 | 138 | ||
139 | out/%: content/% | out | ||
140 | $(info [COPY] $< -> $@) | ||
141 | |||
142 | mkdir -p $(@D) | ||
143 | cp "$<" "$@" | ||
144 | |||
135 | .cache/meta: | .cache | 145 | .cache/meta: | .cache |
136 | mkdir -p .cache/meta | 146 | mkdir -p .cache/meta |
137 | 147 | ||
diff --git a/content/fediring/index.md b/content/fediring/index.md index 1746f3f..1caffef 100644 --- a/content/fediring/index.md +++ b/content/fediring/index.md | |||
@@ -5,4 +5,4 @@ list_layout: grid | |||
5 | url: https://fediring.net/ | 5 | url: https://fediring.net/ |
6 | --- | 6 | --- |
7 | 7 | ||
8 | [Fediring](https://fediring.net/) is a modern day external [webring](https://en.wikipedia.org/wiki/Webring) that lets you explore other fediverse users' personal websites. | 8 | [Fediring](https://fediring.net/) is a modern day [webring](https://en.wikipedia.org/wiki/Webring) that lets you explore other fediverse users' personal websites. |
diff --git a/content/projects/doodles/2021-lazy-firefox/firefox_lazy.png b/content/projects/doodles/2021-lazy-firefox/firefox_lazy.png index 370998c..a10a0b7 100644..100755 --- a/content/projects/doodles/2021-lazy-firefox/firefox_lazy.png +++ b/content/projects/doodles/2021-lazy-firefox/firefox_lazy.png | |||
Binary files differ | |||
diff --git a/content/projects/doodles/2021-lazy-firefox/index.md b/content/projects/doodles/2021-lazy-firefox/index.md index 0804f69..311ea5e 100644 --- a/content/projects/doodles/2021-lazy-firefox/index.md +++ b/content/projects/doodles/2021-lazy-firefox/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Lazy Firefox | 2 | title: Lazy Firefox |
3 | date: 2021-10-16 | 3 | date: 2021-10-16 |
4 | thumbnail: firefox_lazy.png | 4 | thumbnail: thumbnail.png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](firefox_lazy.png) | 7 | ![](firefox_lazy.png) |
diff --git a/content/projects/doodles/2021-lazy-firefox/thumbnail.png b/content/projects/doodles/2021-lazy-firefox/thumbnail.png new file mode 100755 index 0000000..a10a0b7 --- /dev/null +++ b/content/projects/doodles/2021-lazy-firefox/thumbnail.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-eeveelutions/index.md b/content/projects/drawings/2021-eeveelutions/index.md index 0808085..98c071e 100644 --- a/content/projects/drawings/2021-eeveelutions/index.md +++ b/content/projects/drawings/2021-eeveelutions/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Eeveelutions | 2 | title: Eeveelutions |
3 | date: 2021-08-19 | 3 | date: 2021-08-19 |
4 | thumbnail: preview.png | 4 | thumbnail: thumbnail.png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](eevee.png) | 7 | ![](eevee.png) |
diff --git a/content/projects/drawings/2021-eeveelutions/preview.png b/content/projects/drawings/2021-eeveelutions/preview.png deleted file mode 100644 index 643a60c..0000000 --- a/content/projects/drawings/2021-eeveelutions/preview.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-eeveelutions/thumbnail.png b/content/projects/drawings/2021-eeveelutions/thumbnail.png new file mode 100755 index 0000000..07b5bf1 --- /dev/null +++ b/content/projects/drawings/2021-eeveelutions/thumbnail.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-lycanroc-ava/ava.png b/content/projects/drawings/2021-lycanroc-ava/ava.png index d1e1dc1..402f927 100644..100755 --- a/content/projects/drawings/2021-lycanroc-ava/ava.png +++ b/content/projects/drawings/2021-lycanroc-ava/ava.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-lycanroc-ava/index.md b/content/projects/drawings/2021-lycanroc-ava/index.md index 406f9a2..9bf1a5c 100644 --- a/content/projects/drawings/2021-lycanroc-ava/index.md +++ b/content/projects/drawings/2021-lycanroc-ava/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Lycanroc Avatar | 2 | title: Lycanroc Avatar |
3 | date: 2021-10-19 | 3 | date: 2021-10-19 |
4 | thumbnail: ava.png | 4 | thumbnail: thumbnail.png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](ava.png) | 7 | ![](ava.png) |
diff --git a/content/projects/drawings/2021-lycanroc-ava/thumbnail.png b/content/projects/drawings/2021-lycanroc-ava/thumbnail.png new file mode 100755 index 0000000..402f927 --- /dev/null +++ b/content/projects/drawings/2021-lycanroc-ava/thumbnail.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-refsheet/bottom.png b/content/projects/drawings/2021-refsheet/bottom.png index f41a4fb..69f33dd 100644..100755 --- a/content/projects/drawings/2021-refsheet/bottom.png +++ b/content/projects/drawings/2021-refsheet/bottom.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-refsheet/bottom_cofe.png b/content/projects/drawings/2021-refsheet/bottom_cofe.png index f974f71..b3b1ad2 100644..100755 --- a/content/projects/drawings/2021-refsheet/bottom_cofe.png +++ b/content/projects/drawings/2021-refsheet/bottom_cofe.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-refsheet/index.md b/content/projects/drawings/2021-refsheet/index.md index 70bbd84..c4c9bdd 100644 --- a/content/projects/drawings/2021-refsheet/index.md +++ b/content/projects/drawings/2021-refsheet/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Reference Sheet Views | 2 | title: Reference Sheet Views |
3 | date: 2021-10-06 | 3 | date: 2021-10-06 |
4 | thumbnail: preview.png | 4 | thumbnail: thumbnail.png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](bottom.png) | 7 | ![](bottom.png) |
diff --git a/content/projects/drawings/2021-refsheet/preview.png b/content/projects/drawings/2021-refsheet/preview.png deleted file mode 100644 index 709b0c8..0000000 --- a/content/projects/drawings/2021-refsheet/preview.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-refsheet/side.png b/content/projects/drawings/2021-refsheet/side.png index 06a3cd1..6c9efae 100644..100755 --- a/content/projects/drawings/2021-refsheet/side.png +++ b/content/projects/drawings/2021-refsheet/side.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-refsheet/thumbnail.png b/content/projects/drawings/2021-refsheet/thumbnail.png new file mode 100755 index 0000000..aa4345f --- /dev/null +++ b/content/projects/drawings/2021-refsheet/thumbnail.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-spooky-ava-1/ava.png b/content/projects/drawings/2021-spooky-ava-1/ava.png index 4073d17..314172a 100644..100755 --- a/content/projects/drawings/2021-spooky-ava-1/ava.png +++ b/content/projects/drawings/2021-spooky-ava-1/ava.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-spooky-ava-1/index.md b/content/projects/drawings/2021-spooky-ava-1/index.md index ecfd3df..7a988c3 100644 --- a/content/projects/drawings/2021-spooky-ava-1/index.md +++ b/content/projects/drawings/2021-spooky-ava-1/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: \"Spooky\" Avatar | 2 | title: \"Spooky\" Avatar |
3 | date: 2021-10-07 | 3 | date: 2021-10-07 |
4 | thumbnail: ava.png | 4 | thumbnail: thumbnail.png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](ava.png) | 7 | ![](ava.png) |
diff --git a/content/projects/drawings/2021-spooky-ava-1/thumbnail.png b/content/projects/drawings/2021-spooky-ava-1/thumbnail.png new file mode 100755 index 0000000..314172a --- /dev/null +++ b/content/projects/drawings/2021-spooky-ava-1/thumbnail.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-spooky-ava-2/ava.png b/content/projects/drawings/2021-spooky-ava-2/ava.png index 9afc044..3b7d33c 100644..100755 --- a/content/projects/drawings/2021-spooky-ava-2/ava.png +++ b/content/projects/drawings/2021-spooky-ava-2/ava.png | |||
Binary files differ | |||
diff --git a/content/projects/drawings/2021-spooky-ava-2/index.md b/content/projects/drawings/2021-spooky-ava-2/index.md index 0b61e24..9854adf 100644 --- a/content/projects/drawings/2021-spooky-ava-2/index.md +++ b/content/projects/drawings/2021-spooky-ava-2/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Spooky Avatar | 2 | title: Spooky Avatar |
3 | date: 2021-10-14 | 3 | date: 2021-10-14 |
4 | thumbnail: ava.png | 4 | thumbnail: thumbnail.png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](ava.png) | 7 | ![](ava.png) |
diff --git a/content/projects/drawings/2021-spooky-ava-2/thumbnail.png b/content/projects/drawings/2021-spooky-ava-2/thumbnail.png new file mode 100755 index 0000000..3b7d33c --- /dev/null +++ b/content/projects/drawings/2021-spooky-ava-2/thumbnail.png | |||
Binary files differ | |||
diff --git a/content/projects/emojis/blobfox/index.md b/content/projects/emojis/blobfox/index.md index 3012ccc..b7733c9 100644 --- a/content/projects/emojis/blobfox/index.md +++ b/content/projects/emojis/blobfox/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Blobfox | 2 | title: Blobfox |
3 | date: 2020-09-04 | 3 | date: 2020-09-04 |
4 | thumbnail: preview.jpg | 4 | thumbnail: thumbnail.jpg |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](screenshot.png) | 7 | ![](screenshot.png) |
diff --git a/content/projects/emojis/blobfox/preview.jpg b/content/projects/emojis/blobfox/thumbnail.jpg index dc9e989..dc9e989 100644 --- a/content/projects/emojis/blobfox/preview.jpg +++ b/content/projects/emojis/blobfox/thumbnail.jpg | |||
Binary files differ | |||
diff --git a/content/projects/emojis/bunhd/index.md b/content/projects/emojis/bunhd/index.md index 65fcf33..900d910 100644 --- a/content/projects/emojis/bunhd/index.md +++ b/content/projects/emojis/bunhd/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: BunHD | 2 | title: BunHD |
3 | date: 2019-09-30 | 3 | date: 2019-09-30 |
4 | thumbnail: preview.png | 4 | thumbnail: thumbnail.png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](screenshot.png) | 7 | ![](screenshot.png) |
diff --git a/content/projects/emojis/bunhd/preview.png b/content/projects/emojis/bunhd/thumbnail.png index 75d8cec..75d8cec 100644 --- a/content/projects/emojis/bunhd/preview.png +++ b/content/projects/emojis/bunhd/thumbnail.png | |||
Binary files differ | |||
diff --git a/content/projects/emojis/vlpn/index.md b/content/projects/emojis/vlpn/index.md index c7bc68e..02b8e38 100644 --- a/content/projects/emojis/vlpn/index.md +++ b/content/projects/emojis/vlpn/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: vlpn | 2 | title: vlpn |
3 | date: 2021-07-23 | 3 | date: 2021-07-23 |
4 | thumbnail: preview.png | 4 | thumbnail: thumbnail.png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](preview.png) | 7 | ![](preview.png) |
diff --git a/content/projects/emojis/vlpn/thumbnail.png b/content/projects/emojis/vlpn/thumbnail.png new file mode 100644 index 0000000..dc7a7b8 --- /dev/null +++ b/content/projects/emojis/vlpn/thumbnail.png | |||
Binary files differ | |||