change to png
BIN
src/events/_images/2024/m24ams-poster-simple.png
Normal file
After Width: | Height: | Size: 2.9 MiB |
Before Width: | Height: | Size: 330 KiB |
BIN
src/events/_images/2024/m24ams-poster.png
Normal file
After Width: | Height: | Size: 2.6 MiB |
Before Width: | Height: | Size: 359 KiB |
BIN
src/events/_images/2024/m24ams-square.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 132 KiB |
BIN
src/events/_images/2024/m24ams-wide-square.png
Normal file
After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 164 KiB |
BIN
src/events/_images/2024/m24ams-wide.png
Normal file
After Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 162 KiB |
BIN
src/events/_images/2024/m24ath-poster-simple.png
Normal file
After Width: | Height: | Size: 5.9 MiB |
Before Width: | Height: | Size: 559 KiB |
BIN
src/events/_images/2024/m24ath-poster.png
Normal file
After Width: | Height: | Size: 4.8 MiB |
Before Width: | Height: | Size: 535 KiB |
BIN
src/events/_images/2024/m24ath-square.png
Normal file
After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 172 KiB |
BIN
src/events/_images/2024/m24ath-wide-square.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 212 KiB |
BIN
src/events/_images/2024/m24ath-wide.png
Normal file
After Width: | Height: | Size: 2.1 MiB |
Before Width: | Height: | Size: 209 KiB |
BIN
src/events/_images/2024/m24ber-poster-simple.png
Normal file
After Width: | Height: | Size: 4.5 MiB |
Before Width: | Height: | Size: 243 KiB |
BIN
src/events/_images/2024/m24ber-poster.png
Normal file
After Width: | Height: | Size: 3.8 MiB |
Before Width: | Height: | Size: 272 KiB |
BIN
src/events/_images/2024/m24ber-square.png
Normal file
After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 94 KiB |
BIN
src/events/_images/2024/m24ber-wide-square.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 108 KiB |
BIN
src/events/_images/2024/m24ber-wide.png
Normal file
After Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 91 KiB |
BIN
src/events/_images/2024/m24tll-poster-simple.png
Normal file
After Width: | Height: | Size: 4.1 MiB |
Before Width: | Height: | Size: 695 KiB |
BIN
src/events/_images/2024/m24tll-poster.png
Normal file
After Width: | Height: | Size: 3.8 MiB |
Before Width: | Height: | Size: 699 KiB |
BIN
src/events/_images/2024/m24tll-square.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 280 KiB |
BIN
src/events/_images/2024/m24tll-wide-square.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 314 KiB |
BIN
src/events/_images/2024/m24tll-wide.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 307 KiB |
BIN
src/events/_images/2024/s24brn-poster-simple.png
Normal file
After Width: | Height: | Size: 6.2 MiB |
Before Width: | Height: | Size: 368 KiB |
BIN
src/events/_images/2024/s24brn-poster.png
Normal file
After Width: | Height: | Size: 4.9 MiB |
Before Width: | Height: | Size: 341 KiB |
BIN
src/events/_images/2024/s24brn-square.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 120 KiB |
BIN
src/events/_images/2024/s24brn-wide-square.png
Normal file
After Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 151 KiB |
BIN
src/events/_images/2024/s24brn-wide.png
Normal file
After Width: | Height: | Size: 2.3 MiB |
Before Width: | Height: | Size: 158 KiB |
BIN
src/events/_images/2024/s24prg-poster-simple.png
Normal file
After Width: | Height: | Size: 6.9 MiB |
Before Width: | Height: | Size: 534 KiB |
BIN
src/events/_images/2024/s24prg-poster.png
Normal file
After Width: | Height: | Size: 6.3 MiB |
Before Width: | Height: | Size: 568 KiB |
BIN
src/events/_images/2024/s24prg-square.png
Normal file
After Width: | Height: | Size: 2.1 MiB |
Before Width: | Height: | Size: 174 KiB |
BIN
src/events/_images/2024/s24prg-wide-square.png
Normal file
After Width: | Height: | Size: 2.8 MiB |
Before Width: | Height: | Size: 254 KiB |
BIN
src/events/_images/2024/s24prg-wide.png
Normal file
After Width: | Height: | Size: 3.2 MiB |
Before Width: | Height: | Size: 267 KiB |
|
@ -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;
|
||||
|
|