mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 18:40:49 -08:00
make "send to" buttons send actual dimension of the sent image rather than fields
This commit is contained in:
parent
8d12a729b8
commit
251ecee694
2 changed files with 43 additions and 21 deletions
|
|
@ -19,7 +19,7 @@ function selected_gallery_index(){
|
|||
|
||||
function extract_image_from_gallery(gallery){
|
||||
if(gallery.length == 1){
|
||||
return gallery[0]
|
||||
return [gallery[0]]
|
||||
}
|
||||
|
||||
index = selected_gallery_index()
|
||||
|
|
@ -28,7 +28,7 @@ function extract_image_from_gallery(gallery){
|
|||
return [null]
|
||||
}
|
||||
|
||||
return gallery[index];
|
||||
return [gallery[index]];
|
||||
}
|
||||
|
||||
function args_to_array(args){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue