mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-09 15:55:01 +02:00
Move the current implementation of upscale/redo/double size into a custom plugin
This commit is contained in:
@ -369,13 +369,8 @@ function showImages(reqBody, res, outputContainer, livePreview) {
|
||||
const buttons = {
|
||||
'imgUseBtn': { text: 'Use as Input', on_click: onUseAsInputClick },
|
||||
'imgSaveBtn': { text: 'Download', on_click: onDownloadImageClick },
|
||||
'imgX2Btn': { text: 'Double Size', on_click: getStartNewTaskHandler('img2img_X2') },
|
||||
'imgRedoBtn': { text: 'Redo', on_click: getStartNewTaskHandler('img2img') },
|
||||
'makeSimilarBtn': { text: 'Make Similar Images', on_click: onMakeSimilarClick },
|
||||
}
|
||||
if (!req.use_upscale) {
|
||||
buttons.upscaleBtn = { text: 'Upscale', on_click: getStartNewTaskHandler('upscale') }
|
||||
}
|
||||
|
||||
// include the plugins
|
||||
Object.assign(buttons, PLUGINS['IMAGE_INFO_BUTTONS'])
|
||||
|
Reference in New Issue
Block a user