stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: When using 'Save' button, only save a single selected image not working, always save all images
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?


When checking this option, select one image, 'Save' button always save all images.
Steps to reproduce the problem
- Check When using 'Save' button, only save a single selected image option
- Generate some images in txt2img
- Select one generated image
- Press the 'Save' button
- Always save all generated images
What should have happened?
Only save selected image
Commit where the problem happens
commit: 8ea8e712 • checkpoint: 1e06255e39
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
--deepdanbooru --opt-sdp-attention --api
List of extensions
None
Console logs
None
Additional information
No response
Same issue here
yup
Can confirmed it save all images including the grids.
Not just save, error also occurs when importing one of the batch generated image to other functions
Traceback (most recent call last): File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api result = await self.call_function( File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 157, in send_image_and_dimensions img = image_from_url_text(x) File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 70, in image_from_url_text if filedata.startswith("data:image/png;base64,"): AttributeError: 'NoneType' object has no attribute 'startswith'
same here
Try this PR https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/8940, It seems like it was caused by the wrong query selector for the result images
Duplicate https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9009
Fixed by https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/8940