diff --git a/Tuprules.tup b/Tuprules.tup index 5c1360e..bfe80e7 100644 --- a/Tuprules.tup +++ b/Tuprules.tup @@ -12,3 +12,7 @@ HTML_TEMPLATE = main.html --include-after-body=&(root)/templates/footer.html \ %f | sed 's|%%webRoot%%|&(root)|g' > %o \ |> %B.html + +!compress_png = |> zopflipng %f %o |> +!compress_jpg = |> cjpeg -quality 80 -progressive -outfile %o %f |> +!thumbnail = |> convert %f -resize 400x400 -blur 0x8 %o |> diff --git a/projects.md b/projects.md index 6d96e1b..083294b 100644 --- a/projects.md +++ b/projects.md @@ -8,5 +8,5 @@ title: Projects
  • Trailr
  • Where is my car?
  • Maestro
  • -
  • Dawn of Chaos
  • +
  • Dawn of Chaos
  • diff --git a/projects/dawnchaos/Tupfile b/projects/dawnchaos/Tupfile index 2ba7d0a..015e3ae 100644 --- a/projects/dawnchaos/Tupfile +++ b/projects/dawnchaos/Tupfile @@ -1,4 +1,6 @@ include_rules : index.md |> !html |> -: thumbnail.png |> convert %f -blur 0x8 %o |> thumb.png +: shot_01.png |> !thumbnail |> thumb_temp.jpg +: thumb_temp.jpg |> !compress_jpg |> thumb.jpg +: foreach *.png |> !compress_png |> %g_opt.png diff --git a/projects/dawnchaos/thumbnail.png b/projects/dawnchaos/thumbnail.png deleted file mode 100644 index 1952fd0..0000000 Binary files a/projects/dawnchaos/thumbnail.png and /dev/null differ diff --git a/rsync_excludes.txt b/rsync_excludes.txt index 9c6301c..fa60237 100644 --- a/rsync_excludes.txt +++ b/rsync_excludes.txt @@ -1,3 +1,4 @@ templates* tup.config README.html +*_temp.*