make "send to" buttons send actual dimension of the sent image rather than fields

This commit is contained in:
AUTOMATIC
2023-01-02 22:44:46 +03:00
parent 8d12a729b8
commit 251ecee694
2 changed files with 43 additions and 21 deletions

View File

@@ -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){