Added debug in JS for preview.

This commit is contained in:
Christian Bastian
2024-09-07 17:18:31 -04:00
parent 84b1e60df0
commit b9e6d3af0b
2 changed files with 2 additions and 3 deletions

View File

@@ -416,9 +416,7 @@ def get_auto_thumbnail_format(original_format):
@server.PromptServer.instance.routes.get("/model-manager/preview/get")
async def get_model_preview(request):
uri = request.query.get("uri")
if uri is None:
raise ValueError("Missing uri path!")
uri = request.query.get("uri", "no-preview") # BUG: reported that uri is None
quality = 75
response_image_format = request.query.get("image-format", None)
if isinstance(response_image_format, str):

View File

@@ -277,6 +277,7 @@ function imageUri(imageSearchPath = undefined, dateImageModified = undefined, wi
return uri;
}
const PREVIEW_NONE_URI = imageUri();
console.log(PREVIEW_NONE_URI);
const PREVIEW_THUMBNAIL_WIDTH = 320;
const PREVIEW_THUMBNAIL_HEIGHT = 480;