diff --git a/src/events/_images/2024/m24ams-poster-simple.png b/src/events/_images/2024/m24ams-poster-simple.png new file mode 100644 index 0000000..a0d4b59 Binary files /dev/null and b/src/events/_images/2024/m24ams-poster-simple.png differ diff --git a/src/events/_images/2024/m24ams-poster-simple.webp b/src/events/_images/2024/m24ams-poster-simple.webp deleted file mode 100644 index 7f5520b..0000000 Binary files a/src/events/_images/2024/m24ams-poster-simple.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ams-poster.png b/src/events/_images/2024/m24ams-poster.png new file mode 100644 index 0000000..822cc1d Binary files /dev/null and b/src/events/_images/2024/m24ams-poster.png differ diff --git a/src/events/_images/2024/m24ams-poster.webp b/src/events/_images/2024/m24ams-poster.webp deleted file mode 100644 index 93c8b91..0000000 Binary files a/src/events/_images/2024/m24ams-poster.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ams-square.png b/src/events/_images/2024/m24ams-square.png new file mode 100644 index 0000000..de9d36d Binary files /dev/null and b/src/events/_images/2024/m24ams-square.png differ diff --git a/src/events/_images/2024/m24ams-square.webp b/src/events/_images/2024/m24ams-square.webp deleted file mode 100644 index 8aea0c4..0000000 Binary files a/src/events/_images/2024/m24ams-square.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ams-wide-square.png b/src/events/_images/2024/m24ams-wide-square.png new file mode 100644 index 0000000..7750b7b Binary files /dev/null and b/src/events/_images/2024/m24ams-wide-square.png differ diff --git a/src/events/_images/2024/m24ams-wide-square.webp b/src/events/_images/2024/m24ams-wide-square.webp deleted file mode 100644 index 39c9e96..0000000 Binary files a/src/events/_images/2024/m24ams-wide-square.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ams-wide.png b/src/events/_images/2024/m24ams-wide.png new file mode 100644 index 0000000..8c83d37 Binary files /dev/null and b/src/events/_images/2024/m24ams-wide.png differ diff --git a/src/events/_images/2024/m24ams-wide.webp b/src/events/_images/2024/m24ams-wide.webp deleted file mode 100644 index 9eb9541..0000000 Binary files a/src/events/_images/2024/m24ams-wide.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ath-poster-simple.png b/src/events/_images/2024/m24ath-poster-simple.png new file mode 100644 index 0000000..a30369a Binary files /dev/null and b/src/events/_images/2024/m24ath-poster-simple.png differ diff --git a/src/events/_images/2024/m24ath-poster-simple.webp b/src/events/_images/2024/m24ath-poster-simple.webp deleted file mode 100644 index 2bfd504..0000000 Binary files a/src/events/_images/2024/m24ath-poster-simple.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ath-poster.png b/src/events/_images/2024/m24ath-poster.png new file mode 100644 index 0000000..b494641 Binary files /dev/null and b/src/events/_images/2024/m24ath-poster.png differ diff --git a/src/events/_images/2024/m24ath-poster.webp b/src/events/_images/2024/m24ath-poster.webp deleted file mode 100644 index b95280d..0000000 Binary files a/src/events/_images/2024/m24ath-poster.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ath-square.png b/src/events/_images/2024/m24ath-square.png new file mode 100644 index 0000000..eac325e Binary files /dev/null and b/src/events/_images/2024/m24ath-square.png differ diff --git a/src/events/_images/2024/m24ath-square.webp b/src/events/_images/2024/m24ath-square.webp deleted file mode 100644 index 31a1057..0000000 Binary files a/src/events/_images/2024/m24ath-square.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ath-wide-square.png b/src/events/_images/2024/m24ath-wide-square.png new file mode 100644 index 0000000..84ec0af Binary files /dev/null and b/src/events/_images/2024/m24ath-wide-square.png differ diff --git a/src/events/_images/2024/m24ath-wide-square.webp b/src/events/_images/2024/m24ath-wide-square.webp deleted file mode 100644 index 10fbad4..0000000 Binary files a/src/events/_images/2024/m24ath-wide-square.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ath-wide.png b/src/events/_images/2024/m24ath-wide.png new file mode 100644 index 0000000..43b3e60 Binary files /dev/null and b/src/events/_images/2024/m24ath-wide.png differ diff --git a/src/events/_images/2024/m24ath-wide.webp b/src/events/_images/2024/m24ath-wide.webp deleted file mode 100644 index 7e3d969..0000000 Binary files a/src/events/_images/2024/m24ath-wide.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ber-poster-simple.png b/src/events/_images/2024/m24ber-poster-simple.png new file mode 100644 index 0000000..53dd29a Binary files /dev/null and b/src/events/_images/2024/m24ber-poster-simple.png differ diff --git a/src/events/_images/2024/m24ber-poster-simple.webp b/src/events/_images/2024/m24ber-poster-simple.webp deleted file mode 100644 index 0649bad..0000000 Binary files a/src/events/_images/2024/m24ber-poster-simple.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ber-poster.png b/src/events/_images/2024/m24ber-poster.png new file mode 100644 index 0000000..b3027ad Binary files /dev/null and b/src/events/_images/2024/m24ber-poster.png differ diff --git a/src/events/_images/2024/m24ber-poster.webp b/src/events/_images/2024/m24ber-poster.webp deleted file mode 100644 index 80d08ea..0000000 Binary files a/src/events/_images/2024/m24ber-poster.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ber-square.png b/src/events/_images/2024/m24ber-square.png new file mode 100644 index 0000000..37ba924 Binary files /dev/null and b/src/events/_images/2024/m24ber-square.png differ diff --git a/src/events/_images/2024/m24ber-square.webp b/src/events/_images/2024/m24ber-square.webp deleted file mode 100644 index 2d273f6..0000000 Binary files a/src/events/_images/2024/m24ber-square.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ber-wide-square.png b/src/events/_images/2024/m24ber-wide-square.png new file mode 100644 index 0000000..eb3788c Binary files /dev/null and b/src/events/_images/2024/m24ber-wide-square.png differ diff --git a/src/events/_images/2024/m24ber-wide-square.webp b/src/events/_images/2024/m24ber-wide-square.webp deleted file mode 100644 index d20670a..0000000 Binary files a/src/events/_images/2024/m24ber-wide-square.webp and /dev/null differ diff --git a/src/events/_images/2024/m24ber-wide.png b/src/events/_images/2024/m24ber-wide.png new file mode 100644 index 0000000..e012f1d Binary files /dev/null and b/src/events/_images/2024/m24ber-wide.png differ diff --git a/src/events/_images/2024/m24ber-wide.webp b/src/events/_images/2024/m24ber-wide.webp deleted file mode 100644 index f79fa74..0000000 Binary files a/src/events/_images/2024/m24ber-wide.webp and /dev/null differ diff --git a/src/events/_images/2024/m24tll-poster-simple.png b/src/events/_images/2024/m24tll-poster-simple.png new file mode 100644 index 0000000..0bc7be6 Binary files /dev/null and b/src/events/_images/2024/m24tll-poster-simple.png differ diff --git a/src/events/_images/2024/m24tll-poster-simple.webp b/src/events/_images/2024/m24tll-poster-simple.webp deleted file mode 100644 index c717d4d..0000000 Binary files a/src/events/_images/2024/m24tll-poster-simple.webp and /dev/null differ diff --git a/src/events/_images/2024/m24tll-poster.png b/src/events/_images/2024/m24tll-poster.png new file mode 100644 index 0000000..e8e3062 Binary files /dev/null and b/src/events/_images/2024/m24tll-poster.png differ diff --git a/src/events/_images/2024/m24tll-poster.webp b/src/events/_images/2024/m24tll-poster.webp deleted file mode 100644 index cd30d0e..0000000 Binary files a/src/events/_images/2024/m24tll-poster.webp and /dev/null differ diff --git a/src/events/_images/2024/m24tll-square.png b/src/events/_images/2024/m24tll-square.png new file mode 100644 index 0000000..7771ad0 Binary files /dev/null and b/src/events/_images/2024/m24tll-square.png differ diff --git a/src/events/_images/2024/m24tll-square.webp b/src/events/_images/2024/m24tll-square.webp deleted file mode 100644 index 0370c70..0000000 Binary files a/src/events/_images/2024/m24tll-square.webp and /dev/null differ diff --git a/src/events/_images/2024/m24tll-wide-square.png b/src/events/_images/2024/m24tll-wide-square.png new file mode 100644 index 0000000..2bb21d5 Binary files /dev/null and b/src/events/_images/2024/m24tll-wide-square.png differ diff --git a/src/events/_images/2024/m24tll-wide-square.webp b/src/events/_images/2024/m24tll-wide-square.webp deleted file mode 100644 index 27bc753..0000000 Binary files a/src/events/_images/2024/m24tll-wide-square.webp and /dev/null differ diff --git a/src/events/_images/2024/m24tll-wide.png b/src/events/_images/2024/m24tll-wide.png new file mode 100644 index 0000000..2826887 Binary files /dev/null and b/src/events/_images/2024/m24tll-wide.png differ diff --git a/src/events/_images/2024/m24tll-wide.webp b/src/events/_images/2024/m24tll-wide.webp deleted file mode 100644 index 8bf7d33..0000000 Binary files a/src/events/_images/2024/m24tll-wide.webp and /dev/null differ diff --git a/src/events/_images/2024/s24brn-poster-simple.png b/src/events/_images/2024/s24brn-poster-simple.png new file mode 100644 index 0000000..b9cb6ee Binary files /dev/null and b/src/events/_images/2024/s24brn-poster-simple.png differ diff --git a/src/events/_images/2024/s24brn-poster-simple.webp b/src/events/_images/2024/s24brn-poster-simple.webp deleted file mode 100644 index d82732f..0000000 Binary files a/src/events/_images/2024/s24brn-poster-simple.webp and /dev/null differ diff --git a/src/events/_images/2024/s24brn-poster.png b/src/events/_images/2024/s24brn-poster.png new file mode 100644 index 0000000..8a08d9e Binary files /dev/null and b/src/events/_images/2024/s24brn-poster.png differ diff --git a/src/events/_images/2024/s24brn-poster.webp b/src/events/_images/2024/s24brn-poster.webp deleted file mode 100644 index 7da6e6f..0000000 Binary files a/src/events/_images/2024/s24brn-poster.webp and /dev/null differ diff --git a/src/events/_images/2024/s24brn-square.png b/src/events/_images/2024/s24brn-square.png new file mode 100644 index 0000000..1a72368 Binary files /dev/null and b/src/events/_images/2024/s24brn-square.png differ diff --git a/src/events/_images/2024/s24brn-square.webp b/src/events/_images/2024/s24brn-square.webp deleted file mode 100644 index 3de9c90..0000000 Binary files a/src/events/_images/2024/s24brn-square.webp and /dev/null differ diff --git a/src/events/_images/2024/s24brn-wide-square.png b/src/events/_images/2024/s24brn-wide-square.png new file mode 100644 index 0000000..02c4bd3 Binary files /dev/null and b/src/events/_images/2024/s24brn-wide-square.png differ diff --git a/src/events/_images/2024/s24brn-wide-square.webp b/src/events/_images/2024/s24brn-wide-square.webp deleted file mode 100644 index 13965b9..0000000 Binary files a/src/events/_images/2024/s24brn-wide-square.webp and /dev/null differ diff --git a/src/events/_images/2024/s24brn-wide.png b/src/events/_images/2024/s24brn-wide.png new file mode 100644 index 0000000..71c9fbb Binary files /dev/null and b/src/events/_images/2024/s24brn-wide.png differ diff --git a/src/events/_images/2024/s24brn-wide.webp b/src/events/_images/2024/s24brn-wide.webp deleted file mode 100644 index ac8c9f1..0000000 Binary files a/src/events/_images/2024/s24brn-wide.webp and /dev/null differ diff --git a/src/events/_images/2024/s24prg-poster-simple.png b/src/events/_images/2024/s24prg-poster-simple.png new file mode 100644 index 0000000..30dd132 Binary files /dev/null and b/src/events/_images/2024/s24prg-poster-simple.png differ diff --git a/src/events/_images/2024/s24prg-poster-simple.webp b/src/events/_images/2024/s24prg-poster-simple.webp deleted file mode 100644 index fb489f1..0000000 Binary files a/src/events/_images/2024/s24prg-poster-simple.webp and /dev/null differ diff --git a/src/events/_images/2024/s24prg-poster.png b/src/events/_images/2024/s24prg-poster.png new file mode 100644 index 0000000..0c83557 Binary files /dev/null and b/src/events/_images/2024/s24prg-poster.png differ diff --git a/src/events/_images/2024/s24prg-poster.webp b/src/events/_images/2024/s24prg-poster.webp deleted file mode 100644 index 859dd68..0000000 Binary files a/src/events/_images/2024/s24prg-poster.webp and /dev/null differ diff --git a/src/events/_images/2024/s24prg-square.png b/src/events/_images/2024/s24prg-square.png new file mode 100644 index 0000000..7a409d4 Binary files /dev/null and b/src/events/_images/2024/s24prg-square.png differ diff --git a/src/events/_images/2024/s24prg-square.webp b/src/events/_images/2024/s24prg-square.webp deleted file mode 100644 index 1259c3d..0000000 Binary files a/src/events/_images/2024/s24prg-square.webp and /dev/null differ diff --git a/src/events/_images/2024/s24prg-wide-square.png b/src/events/_images/2024/s24prg-wide-square.png new file mode 100644 index 0000000..26aa2da Binary files /dev/null and b/src/events/_images/2024/s24prg-wide-square.png differ diff --git a/src/events/_images/2024/s24prg-wide-square.webp b/src/events/_images/2024/s24prg-wide-square.webp deleted file mode 100644 index 48b8320..0000000 Binary files a/src/events/_images/2024/s24prg-wide-square.webp and /dev/null differ diff --git a/src/events/_images/2024/s24prg-wide.png b/src/events/_images/2024/s24prg-wide.png new file mode 100644 index 0000000..bfc883f Binary files /dev/null and b/src/events/_images/2024/s24prg-wide.png differ diff --git a/src/events/_images/2024/s24prg-wide.webp b/src/events/_images/2024/s24prg-wide.webp deleted file mode 100644 index 448209a..0000000 Binary files a/src/events/_images/2024/s24prg-wide.webp and /dev/null differ diff --git a/utils/images.js b/utils/images.js index b1b0e2d..5a3b0da 100644 --- a/utils/images.js +++ b/utils/images.js @@ -5,6 +5,8 @@ import { exists } from "https://deno.land/std@0.213.0/fs/exists.ts"; const engine = new Engine(); await engine.init(); +const FORMAT = 'webp'; + async function genImage (destFn, url, element) { console.log(`Getting ${url} (${element}) (dest=${destFn})`) @@ -16,8 +18,9 @@ async function genImage (destFn, url, element) { body: JSON.stringify({ url, element, - format: 'webp', + format: FORMAT, scale: 4, + quality: 100, }) }); @@ -46,7 +49,7 @@ for(const event of engine.rendered.events) { const design = event.design for (const format of eventFormats) { - const destFn = join(DEST_DIR, year, `${event.id}-${format}.webp`); + const destFn = join(DEST_DIR, year, `${event.id}-${format}.${FORMAT}`); if (await exists(destFn)) { console.log(`${destFn} existing, skipping ..`) continue;