From 4ce55d23b374ecad1ae9df60ed7f2acaf16ab33a Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 27 Dec 2021 10:59:12 +0100 Subject: Add thumbnail compression --- Makefile | 18 ++++++++++++++---- content/fediring/index.md | 2 +- .../doodles/2021-lazy-firefox/firefox_lazy.png | Bin 32140 -> 88463 bytes .../projects/doodles/2021-lazy-firefox/index.md | 2 +- .../doodles/2021-lazy-firefox/thumbnail.png | Bin 0 -> 88463 bytes .../projects/drawings/2021-eeveelutions/index.md | 2 +- .../drawings/2021-eeveelutions/preview.png | Bin 15933 -> 0 bytes .../drawings/2021-eeveelutions/thumbnail.png | Bin 0 -> 35958 bytes .../projects/drawings/2021-lycanroc-ava/ava.png | Bin 24361 -> 69371 bytes .../projects/drawings/2021-lycanroc-ava/index.md | 2 +- .../drawings/2021-lycanroc-ava/thumbnail.png | Bin 0 -> 69371 bytes content/projects/drawings/2021-refsheet/bottom.png | Bin 53587 -> 143999 bytes .../drawings/2021-refsheet/bottom_cofe.png | Bin 53782 -> 148163 bytes content/projects/drawings/2021-refsheet/index.md | 2 +- .../projects/drawings/2021-refsheet/preview.png | Bin 21879 -> 0 bytes content/projects/drawings/2021-refsheet/side.png | Bin 64827 -> 176701 bytes .../projects/drawings/2021-refsheet/thumbnail.png | Bin 0 -> 61956 bytes .../projects/drawings/2021-spooky-ava-1/ava.png | Bin 31311 -> 87311 bytes .../projects/drawings/2021-spooky-ava-1/index.md | 2 +- .../drawings/2021-spooky-ava-1/thumbnail.png | Bin 0 -> 87311 bytes .../projects/drawings/2021-spooky-ava-2/ava.png | Bin 144670 -> 146530 bytes .../projects/drawings/2021-spooky-ava-2/index.md | 2 +- .../drawings/2021-spooky-ava-2/thumbnail.png | Bin 0 -> 146530 bytes content/projects/emojis/blobfox/index.md | 2 +- content/projects/emojis/blobfox/preview.jpg | Bin 65597 -> 0 bytes content/projects/emojis/blobfox/thumbnail.jpg | Bin 0 -> 65597 bytes content/projects/emojis/bunhd/index.md | 2 +- content/projects/emojis/bunhd/preview.png | Bin 29356 -> 0 bytes content/projects/emojis/bunhd/thumbnail.png | Bin 0 -> 29356 bytes content/projects/emojis/vlpn/index.md | 2 +- content/projects/emojis/vlpn/thumbnail.png | Bin 0 -> 109296 bytes 31 files changed, 24 insertions(+), 14 deletions(-) mode change 100644 => 100755 content/projects/doodles/2021-lazy-firefox/firefox_lazy.png create mode 100755 content/projects/doodles/2021-lazy-firefox/thumbnail.png delete mode 100644 content/projects/drawings/2021-eeveelutions/preview.png create mode 100755 content/projects/drawings/2021-eeveelutions/thumbnail.png mode change 100644 => 100755 content/projects/drawings/2021-lycanroc-ava/ava.png create mode 100755 content/projects/drawings/2021-lycanroc-ava/thumbnail.png mode change 100644 => 100755 content/projects/drawings/2021-refsheet/bottom.png mode change 100644 => 100755 content/projects/drawings/2021-refsheet/bottom_cofe.png delete mode 100644 content/projects/drawings/2021-refsheet/preview.png mode change 100644 => 100755 content/projects/drawings/2021-refsheet/side.png create mode 100755 content/projects/drawings/2021-refsheet/thumbnail.png mode change 100644 => 100755 content/projects/drawings/2021-spooky-ava-1/ava.png create mode 100755 content/projects/drawings/2021-spooky-ava-1/thumbnail.png mode change 100644 => 100755 content/projects/drawings/2021-spooky-ava-2/ava.png create mode 100755 content/projects/drawings/2021-spooky-ava-2/thumbnail.png delete mode 100644 content/projects/emojis/blobfox/preview.jpg create mode 100644 content/projects/emojis/blobfox/thumbnail.jpg delete mode 100644 content/projects/emojis/bunhd/preview.png create mode 100644 content/projects/emojis/bunhd/thumbnail.png create mode 100644 content/projects/emojis/vlpn/thumbnail.png diff --git a/Makefile b/Makefile index d84b561..bec4677 100644 --- a/Makefile +++ b/Makefile @@ -112,11 +112,15 @@ out/%.xml: content/%.md .cache/meta/%.json $(FEED_TEMPLATES_SRC) metadata/*.yaml $(PANDOC_FILTERS) \ -o "$@" "$<" -out/%: content/% | out - $(info [COPY] $< -> $@) +out/%/thumbnail.png: content/%/thumbnail.png | out + $(info [THMB] $< -> $@) - mkdir -p $(@D) - cp "$<" "$@" + convert -thumbnail 360x200^ -gravity center -extent 360x200 "$<" png:- | pngquant -o "$@" - + +out/%/thumbnail.jpg: content/%/thumbnail.jpg | out + $(info [THMB] $< -> $@) + + convert -thumbnail 360x200^ -gravity center -extent 360x200 "$<" ppm:- | cjpeg -quality 80 > "$@" out/%.woff2: assets/fonts/%.ttf assets/fonts/glyphs.txt | out $(info [FONT] $< -> $@) @@ -132,6 +136,12 @@ out/%.css: assets/css/%.scss $(CSS_SRC) | out sass "$<" | ./node_modules/.bin/postcss --use postcss-csso autoprefixer --no-map > "$@" +out/%: content/% | out + $(info [COPY] $< -> $@) + + mkdir -p $(@D) + cp "$<" "$@" + .cache/meta: | .cache mkdir -p .cache/meta 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 url: https://fediring.net/ --- -[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. +[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 old mode 100644 new mode 100755 index 370998c..a10a0b7 Binary files a/content/projects/doodles/2021-lazy-firefox/firefox_lazy.png and b/content/projects/doodles/2021-lazy-firefox/firefox_lazy.png 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 @@ --- title: Lazy Firefox date: 2021-10-16 -thumbnail: firefox_lazy.png +thumbnail: thumbnail.png --- ![](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 Binary files /dev/null and b/content/projects/doodles/2021-lazy-firefox/thumbnail.png 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 @@ --- title: Eeveelutions date: 2021-08-19 -thumbnail: preview.png +thumbnail: thumbnail.png --- ![](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 Binary files a/content/projects/drawings/2021-eeveelutions/preview.png and /dev/null 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 Binary files /dev/null and b/content/projects/drawings/2021-eeveelutions/thumbnail.png differ diff --git a/content/projects/drawings/2021-lycanroc-ava/ava.png b/content/projects/drawings/2021-lycanroc-ava/ava.png old mode 100644 new mode 100755 index d1e1dc1..402f927 Binary files a/content/projects/drawings/2021-lycanroc-ava/ava.png and b/content/projects/drawings/2021-lycanroc-ava/ava.png 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 @@ --- title: Lycanroc Avatar date: 2021-10-19 -thumbnail: ava.png +thumbnail: thumbnail.png --- ![](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 Binary files /dev/null and b/content/projects/drawings/2021-lycanroc-ava/thumbnail.png differ diff --git a/content/projects/drawings/2021-refsheet/bottom.png b/content/projects/drawings/2021-refsheet/bottom.png old mode 100644 new mode 100755 index f41a4fb..69f33dd Binary files a/content/projects/drawings/2021-refsheet/bottom.png and b/content/projects/drawings/2021-refsheet/bottom.png differ diff --git a/content/projects/drawings/2021-refsheet/bottom_cofe.png b/content/projects/drawings/2021-refsheet/bottom_cofe.png old mode 100644 new mode 100755 index f974f71..b3b1ad2 Binary files a/content/projects/drawings/2021-refsheet/bottom_cofe.png and b/content/projects/drawings/2021-refsheet/bottom_cofe.png 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 @@ --- title: Reference Sheet Views date: 2021-10-06 -thumbnail: preview.png +thumbnail: thumbnail.png --- ![](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 Binary files a/content/projects/drawings/2021-refsheet/preview.png and /dev/null differ diff --git a/content/projects/drawings/2021-refsheet/side.png b/content/projects/drawings/2021-refsheet/side.png old mode 100644 new mode 100755 index 06a3cd1..6c9efae Binary files a/content/projects/drawings/2021-refsheet/side.png and b/content/projects/drawings/2021-refsheet/side.png 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 Binary files /dev/null and b/content/projects/drawings/2021-refsheet/thumbnail.png differ diff --git a/content/projects/drawings/2021-spooky-ava-1/ava.png b/content/projects/drawings/2021-spooky-ava-1/ava.png old mode 100644 new mode 100755 index 4073d17..314172a Binary files a/content/projects/drawings/2021-spooky-ava-1/ava.png and b/content/projects/drawings/2021-spooky-ava-1/ava.png 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 @@ --- title: \"Spooky\" Avatar date: 2021-10-07 -thumbnail: ava.png +thumbnail: thumbnail.png --- ![](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 Binary files /dev/null and b/content/projects/drawings/2021-spooky-ava-1/thumbnail.png differ diff --git a/content/projects/drawings/2021-spooky-ava-2/ava.png b/content/projects/drawings/2021-spooky-ava-2/ava.png old mode 100644 new mode 100755 index 9afc044..3b7d33c Binary files a/content/projects/drawings/2021-spooky-ava-2/ava.png and b/content/projects/drawings/2021-spooky-ava-2/ava.png 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 @@ --- title: Spooky Avatar date: 2021-10-14 -thumbnail: ava.png +thumbnail: thumbnail.png --- ![](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 Binary files /dev/null and b/content/projects/drawings/2021-spooky-ava-2/thumbnail.png 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 @@ --- title: Blobfox date: 2020-09-04 -thumbnail: preview.jpg +thumbnail: thumbnail.jpg --- ![](screenshot.png) diff --git a/content/projects/emojis/blobfox/preview.jpg b/content/projects/emojis/blobfox/preview.jpg deleted file mode 100644 index dc9e989..0000000 Binary files a/content/projects/emojis/blobfox/preview.jpg and /dev/null differ diff --git a/content/projects/emojis/blobfox/thumbnail.jpg b/content/projects/emojis/blobfox/thumbnail.jpg new file mode 100644 index 0000000..dc9e989 Binary files /dev/null and b/content/projects/emojis/blobfox/thumbnail.jpg 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 @@ --- title: BunHD date: 2019-09-30 -thumbnail: preview.png +thumbnail: thumbnail.png --- ![](screenshot.png) diff --git a/content/projects/emojis/bunhd/preview.png b/content/projects/emojis/bunhd/preview.png deleted file mode 100644 index 75d8cec..0000000 Binary files a/content/projects/emojis/bunhd/preview.png and /dev/null differ diff --git a/content/projects/emojis/bunhd/thumbnail.png b/content/projects/emojis/bunhd/thumbnail.png new file mode 100644 index 0000000..75d8cec Binary files /dev/null and b/content/projects/emojis/bunhd/thumbnail.png 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 @@ --- title: vlpn date: 2021-07-23 -thumbnail: preview.png +thumbnail: thumbnail.png --- ![](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 Binary files /dev/null and b/content/projects/emojis/vlpn/thumbnail.png differ -- cgit v1.2.3-70-g09d2