diff --git a/public/images/chua-thai-lac/01.webp b/public/images/chua-thai-lac/01.webp index 410ec8e..2e894be 100644 Binary files a/public/images/chua-thai-lac/01.webp and b/public/images/chua-thai-lac/01.webp differ diff --git a/public/images/chua-thai-lac/02.webp b/public/images/chua-thai-lac/02.webp index cde2f7f..bc3e5db 100644 Binary files a/public/images/chua-thai-lac/02.webp and b/public/images/chua-thai-lac/02.webp differ diff --git a/public/images/chua-thai-lac/03.webp b/public/images/chua-thai-lac/03.webp index ea56584..12f09cf 100644 Binary files a/public/images/chua-thai-lac/03.webp and b/public/images/chua-thai-lac/03.webp differ diff --git a/public/images/chua-thai-lac/04.webp b/public/images/chua-thai-lac/04.webp index e52e380..1d2bbc9 100644 Binary files a/public/images/chua-thai-lac/04.webp and b/public/images/chua-thai-lac/04.webp differ diff --git a/public/images/chua-thai-lac/05.webp b/public/images/chua-thai-lac/05.webp index abec631..6d3e27f 100644 Binary files a/public/images/chua-thai-lac/05.webp and b/public/images/chua-thai-lac/05.webp differ diff --git a/public/images/chua-thai-lac/06.webp b/public/images/chua-thai-lac/06.webp index 13dc767..347347a 100644 Binary files a/public/images/chua-thai-lac/06.webp and b/public/images/chua-thai-lac/06.webp differ diff --git a/public/images/chua-thai-lac/07.webp b/public/images/chua-thai-lac/07.webp index a9421b7..d2eafa7 100644 Binary files a/public/images/chua-thai-lac/07.webp and b/public/images/chua-thai-lac/07.webp differ diff --git a/public/images/chua-thai-lac/08.webp b/public/images/chua-thai-lac/08.webp index dd2b756..9dbe258 100644 Binary files a/public/images/chua-thai-lac/08.webp and b/public/images/chua-thai-lac/08.webp differ diff --git a/public/images/chua-thai-lac/09.webp b/public/images/chua-thai-lac/09.webp index f2d9208..73f2bf7 100644 Binary files a/public/images/chua-thai-lac/09.webp and b/public/images/chua-thai-lac/09.webp differ diff --git a/public/images/chua-thai-lac/10.webp b/public/images/chua-thai-lac/10.webp index bfbe774..7da6bc9 100644 Binary files a/public/images/chua-thai-lac/10.webp and b/public/images/chua-thai-lac/10.webp differ diff --git a/public/images/chua-thai-lac/11.webp b/public/images/chua-thai-lac/11.webp index ffe2359..ab159df 100644 Binary files a/public/images/chua-thai-lac/11.webp and b/public/images/chua-thai-lac/11.webp differ diff --git a/public/images/chua-thai-lac/12.webp b/public/images/chua-thai-lac/12.webp index 32e467c..1b2b34e 100644 Binary files a/public/images/chua-thai-lac/12.webp and b/public/images/chua-thai-lac/12.webp differ diff --git a/public/images/chua-thai-lac/13.webp b/public/images/chua-thai-lac/13.webp index e06a7d4..f2d56e0 100644 Binary files a/public/images/chua-thai-lac/13.webp and b/public/images/chua-thai-lac/13.webp differ diff --git a/public/images/chua-thai-lac/14.webp b/public/images/chua-thai-lac/14.webp index f2b9238..360ec5d 100644 Binary files a/public/images/chua-thai-lac/14.webp and b/public/images/chua-thai-lac/14.webp differ diff --git a/public/images/chua-thai-lac/15.webp b/public/images/chua-thai-lac/15.webp index b90f51e..fea006d 100644 Binary files a/public/images/chua-thai-lac/15.webp and b/public/images/chua-thai-lac/15.webp differ diff --git a/public/images/chua-thai-lac/16.webp b/public/images/chua-thai-lac/16.webp index c5edbac..87a30a6 100644 Binary files a/public/images/chua-thai-lac/16.webp and b/public/images/chua-thai-lac/16.webp differ diff --git a/public/images/chua-thai-lac/17.webp b/public/images/chua-thai-lac/17.webp index a912630..be351c5 100644 Binary files a/public/images/chua-thai-lac/17.webp and b/public/images/chua-thai-lac/17.webp differ diff --git a/public/images/chua-thai-lac/18.webp b/public/images/chua-thai-lac/18.webp index 15d8876..bae9118 100644 Binary files a/public/images/chua-thai-lac/18.webp and b/public/images/chua-thai-lac/18.webp differ diff --git a/public/images/chua-thai-lac/19.webp b/public/images/chua-thai-lac/19.webp index 76e4d27..684cac0 100644 Binary files a/public/images/chua-thai-lac/19.webp and b/public/images/chua-thai-lac/19.webp differ diff --git a/public/images/chua-thai-lac/20.webp b/public/images/chua-thai-lac/20.webp index 88b3769..02b6bfe 100644 Binary files a/public/images/chua-thai-lac/20.webp and b/public/images/chua-thai-lac/20.webp differ diff --git a/public/images/chua-thai-lac/21.webp b/public/images/chua-thai-lac/21.webp index 07f8135..5af9077 100644 Binary files a/public/images/chua-thai-lac/21.webp and b/public/images/chua-thai-lac/21.webp differ diff --git a/public/images/chua-thai-lac/22.webp b/public/images/chua-thai-lac/22.webp index 8561d8d..42baa2f 100644 Binary files a/public/images/chua-thai-lac/22.webp and b/public/images/chua-thai-lac/22.webp differ diff --git a/public/images/chua-thai-lac/23.webp b/public/images/chua-thai-lac/23.webp index cb4d8bf..0d877ce 100644 Binary files a/public/images/chua-thai-lac/23.webp and b/public/images/chua-thai-lac/23.webp differ diff --git a/public/images/chua-thai-lac/24.webp b/public/images/chua-thai-lac/24.webp index bc229b2..a1bb40b 100644 Binary files a/public/images/chua-thai-lac/24.webp and b/public/images/chua-thai-lac/24.webp differ diff --git a/public/images/chua-thai-lac/25.webp b/public/images/chua-thai-lac/25.webp index 6752e05..4ed8eba 100644 Binary files a/public/images/chua-thai-lac/25.webp and b/public/images/chua-thai-lac/25.webp differ diff --git a/public/images/chua-thai-lac/26.webp b/public/images/chua-thai-lac/26.webp index 0d94858..7ec30fe 100644 Binary files a/public/images/chua-thai-lac/26.webp and b/public/images/chua-thai-lac/26.webp differ diff --git a/scripts/optimize-images.mjs b/scripts/optimize-images.mjs index cea2abe..ef6d070 100644 --- a/scripts/optimize-images.mjs +++ b/scripts/optimize-images.mjs @@ -11,7 +11,7 @@ const BACKUP_DIR = path.join(ROOT, "image-originals"); const LQIP_OUT = path.join(ROOT, "src/app/tours/chua-thai-lac.lqip.ts"); const PANO_WIDTH = 4096; -const PANO_WEBP_QUALITY = 78; +const PANO_WEBP_QUALITY = 72; const PANO_QUALITY = 80; const LQIP_WIDTH = 32; const MODAL_FILES = ["modal-1.png", "modal-2.png"]; @@ -53,7 +53,7 @@ async function optimizePanoramas() { const webpBuf = await sharp(src) .rotate() .resize({ width: PANO_WIDTH, withoutEnlargement: true }) - .webp({ quality: PANO_WEBP_QUALITY }) + .webp({ quality: PANO_WEBP_QUALITY, effort: 6 }) .toBuffer(); await fs.writeFile(webpDest, webpBuf);