stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Buttons on UI to load previous /next image file from folder , in img2img tab and upscalers tab.

Open 1blackbar opened this issue 3 years ago • 2 comments
trafficstars

Its pretty overwhelming after awhile when we have thousands of generated images and we load one by one to upscale seeking for particular ones, So i think it would really help if there would be some kind of button on UI that loads next file and another button that loads previous file ( so two buttons next to each other), and we wouldnt have to open file browser for hundreds of times and scrol through files with mouse wheel. After loading first image file we would just use buttons/arrows to move between images in given folder, it woud speedup upscaling workflow and img2img workflow quite alot, generations of images are stacking up pretty quickly.

1blackbar avatar Aug 27 '22 12:08 1blackbar

Javascript has no access to the directory, this is pretty much impossible as the program is now.

AUTOMATIC1111 avatar Aug 28 '22 04:08 AUTOMATIC1111

I guess this attempt would be too slow ? https://stackoverflow.com/questions/31274329/get-list-of-filenames-in-folder-with-javascript

1blackbar avatar Aug 28 '22 13:08 1blackbar

Like I said this is a path I do not want to go. When you drag picture into browser or select a file in browser for image, the javascript does not get to know what path the image was in. There might be some convoluted way to implement something similar to this if someone really really wants, and it will somewhat work, but I am not going to do that.

AUTOMATIC1111 avatar Aug 28 '22 18:08 AUTOMATIC1111