perf: tour nạp panorama WebP thay cho JPEG
This commit is contained in:
@@ -9,7 +9,7 @@ import type { TourConfig, TourScene, InfoMarker, Hotspot } from "@/app/component
|
||||
const base = "/images/chua-thai-lac";
|
||||
// Trỏ tới đúng file ảnh gốc theo SỐ FILE (01..26), độc lập với thứ tự cảnh sau khi
|
||||
// đánh số lại — nhờ vậy có thể bỏ cảnh giữa chừng mà không phải đổi tên ảnh.
|
||||
const imageForFile = (fileNumber: number) => `${base}/${String(fileNumber).padStart(2, "0")}.jpg`;
|
||||
const imageForFile = (fileNumber: number) => `${base}/${String(fileNumber).padStart(2, "0")}.webp`;
|
||||
|
||||
type SceneSeed = {
|
||||
title: string;
|
||||
|
||||
Reference in New Issue
Block a user