Use data directory to save images

This commit is contained in:
DerTyp7
2025-10-09 14:32:05 +02:00
parent 67e986ab07
commit 7350cec32c
8 changed files with 60 additions and 11 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ export default function Gallery({ initialImages }: GalleryProps) {
width={image.aspect_ratio > HORIZONTAL_ASPECT_RATIO ? image.width : 700}
height={image.aspect_ratio < VERTICAL_ASPECT_RATIO ? image.height : 700}
loading="lazy"
src={`/images/${image.relative_path}`}
src={`/api/images/${image.id}`}
alt={image.aspect_ratio?.toString()}
onClick={() => setFullScreenImage(`/images/${image.relative_path}`)}
/>