Skip to content

[Bug]: Can't pass to, or open image to be source in img2img tab #6884

@valden80

Description

@valden80

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

When pressing "send to img2img", or trying to load image from disk as source image for img2img I get this error:

Traceback (most recent call last):
  File "<private>/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "<private>/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1015, in process_api
    result = await self.call_function(
  File "<private>/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 833, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "<private>/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "<private>/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "<private>/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "<private>/stable-diffusion-webui/modules/generation_parameters_copypaste.py", line 116, in send_image_and_dimensions
    img = image_from_url_text(x)
  File "<private>/stable-diffusion-webui/modules/generation_parameters_copypaste.py", line 62, in image_from_url_text
    filedata = base64.decodebytes(filedata.encode('utf-8'))
  File "/usr/lib/python3.10/base64.py", line 562, in decodebytes
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

"private" - my edit of actual path (contain local username).

Steps to reproduce the problem

  1. Go to img2img tab
  2. Try to load any image.

What should have happened?

Normal image loading into img2img source.

Commit where the problem happens

a4291fe99b94899b92bcc4e7637dd106168da866

What platforms do you use to access UI ?

Linux

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--lowvram --precision full --no-half --no-half-vae --opt-split-attention --xformers --enable-console-prompts --api --deepdanbooru --use-cpu interrogate

Additional information, context and logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportReport of a bug, yet to be confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions