Improve 3D gallery and debug checkup workflow for image curation.

Add parquet floor, museum-style exit, movement-tinted walls, and gold/black
frames with gallery sync after Fix it. Debug panel gets Checked and Fix it
buttons; documentation and image-fetch reliability updates included.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Danila Khodjaef
2026-06-20 22:05:24 +03:00
co-authored by Cursor
parent 4c6acd5a3a
commit 019ce4e136
67 changed files with 1061 additions and 190 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ const path = require('path');
const pool = require('./db');
const {
savePaintingImages,
downloadImageToFile,
downloadImageForFix,
generateThumbnailFromFull,
pickExt,
} = require('../scripts/image-fetcher');
@@ -154,7 +154,7 @@ async function ensurePaintingImages(paintingId, size = 'thumb') {
return promise;
}
async function replacePaintingImageFromUrl(paintingId, imageUrl) {
async function replacePaintingImageFromUrl(paintingId, imageUrl, context = {}) {
const result = await pool.query(
`SELECT p.id, p.title, p.image_path, p.thumbnail_path, a.name AS artist_name
FROM paintings p
@@ -182,7 +182,7 @@ async function replacePaintingImageFromUrl(paintingId, imageUrl) {
unlinkIfExists(fullDest);
unlinkIfExists(thumbDest);
await downloadImageToFile(imageUrl, fullDest, { force: true });
await downloadImageForFix(imageUrl, fullDest, context);
let thumbnailPath = null;
try {