[Bug]: cant "Send to" from image browser to img2img or inpaint. Returns error "binascii.Error: Incorrect padding"
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
when selecting an image from the image browser, then clicking either "Sent to img2img" or "Send to Inpainting" it sends all the metadata properly but the preview window where the image is supposed to show just says error, and it will not stop saying error unless i reload the page or UI. everything was working up until about 7 days ago. In the console I get the following:
Traceback (most recent call last): File "H:\Personal\hobbies\AI-Art\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 321, in run_predict output = await app.blocks.process_api( File "H:\Personal\hobbies\AI-Art\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api result = await self.call_function(fn_index, inputs, iterator, request) File "H:\Personal\hobbies\AI-Art\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 856, in call_function prediction = await anyio.to_thread.run_sync( File "H:\Personal\hobbies\AI-Art\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 "H:\Personal\hobbies\AI-Art\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "H:\Personal\hobbies\AI-Art\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "H:\Personal\hobbies\AI-Art\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 113, in send_image_and_dimensions img = image_from_url_text(x) File "H:\Personal\hobbies\AI-Art\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 59, in image_from_url_text filedata = base64.decodebytes(filedata.encode('utf-8')) File "C:\Program Files\Python38\lib\base64.py", line 562, in decodebytes return binascii.a2b_base64(s) binascii.Error: Incorrect padding
Steps to reproduce the problem
- Go to Image Browser
- Select image
- Click on Send to (img2img/Inpainting)
What should have happened?
image should appear and can continue.
Commit where the problem happens
d4fd2418efb0986a8226add0b800fb5c73ffb58c
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
--xformers --api --port 7860
Additional information, context and logs
I have tried removing the json config files and having it regen them. this did not change anything.
https://github.com/yfszzx/stable-diffusion-webui-images-browser/issues/69 https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/6541
This is also an issue while running the webui on Linux platforms (Mint 21.0)
- while using Firefox as the browser on Windows.
- and using Firefox as the browser on Linux (Mint 21.0)
same here, windows 10, firefox
This should solve the issue: https://github.com/yfszzx/stable-diffusion-webui-images-browser/issues/69#issuecomment-1382885122
Since the original maintainer of the extension seems to have been absent for a while, you can use this fork: https://github.com/AlUlkesh/stable-diffusion-webui-images-browser
This should solve the issue: yfszzx/stable-diffusion-webui-images-browser#69 (comment)
Since the original maintainer of the extension seems to have been absent for a while, you can use this fork: https://github.com/AlUlkesh/stable-diffusion-webui-images-browser
Wow thanks @AlUlkesh your image browser is a good step up. Maybe see about getting it added to the thingy and the (slightly) broken one removed?
Thanks! It's actually been switched in the thingy for a couple of weeks now already.