fix(heal): restore sharp photorealistic textures and structural lines via 1:1 scale exemplar synthesis

This commit is contained in:
2026-10-16 16:10:27 +07:00
parent 4c249fc173
commit 105fc67c9b
2 changed files with 132 additions and 205 deletions
+1 -4
View File
@@ -1088,10 +1088,7 @@ async function applyHealToBase(
const srcH = srcBottom - srcTop;
if (srcW >= 8 && srcH >= 8) {
const { w: mw, h: mh } = inpaintCropSize(
(srcW / width) * INPAINT_REF_LONG,
(srcH / height) * INPAINT_REF_LONG
);
const { w: mw, h: mh } = inpaintCropSize(srcW, srcH);
const cropSurface = tempOwn(createSurface(mw, mh));
if (cropSurface) {
cropSurface.getCanvas().drawImageRect(