mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
use jpg extension for custom nodes
This commit is contained in:
@@ -112,7 +112,9 @@ const getThumbnailUrl = (index = '') => {
|
|||||||
// For templates from custom nodes, multiple images is not yet supported
|
// For templates from custom nodes, multiple images is not yet supported
|
||||||
const indexSuffix = sourceModule === 'default' && index ? `-${index}` : ''
|
const indexSuffix = sourceModule === 'default' && index ? `-${index}` : ''
|
||||||
|
|
||||||
return `${basePath}${indexSuffix}.${template.mediaSubtype}`
|
const extension = sourceModule === 'default' ? template.mediaSubtype : 'jpg'
|
||||||
|
|
||||||
|
return `${basePath}${indexSuffix}.${extension}`
|
||||||
}
|
}
|
||||||
|
|
||||||
const baseThumbnailSrc = computed(() =>
|
const baseThumbnailSrc = computed(() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user