mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 08:00:05 +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
|
||||
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(() =>
|
||||
|
||||
Reference in New Issue
Block a user