[feat] Add file upload support to canvas background image setting (#3958)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Christian Byrne
2025-05-21 16:06:16 -07:00
committed by GitHub
parent 49400c69b6
commit ccc1039abb
14 changed files with 414 additions and 39 deletions

View File

@@ -830,15 +830,12 @@ export const CORE_SETTINGS: SettingParams[] = [
id: 'Comfy.Canvas.BackgroundImage',
category: ['Appearance', 'Canvas', 'Background'],
name: 'Canvas background image',
type: 'text',
type: 'backgroundImage',
tooltip:
'Image URL for the canvas background. You can right-click an image in the outputs panel and select "Set as Background" to use it.',
'Image URL for the canvas background. You can right-click an image in the outputs panel and select "Set as Background" to use it, or upload your own image using the upload button.',
defaultValue: '',
versionAdded: '1.20.4',
attrs: {
inputmode: 'url',
placeholder: 'https://example.com/image.png'
}
versionModified: '1.20.5'
},
{
id: 'LiteGraph.Pointer.TrackpadGestures',