Repository: stable-diffusion-webui
Issue: [Bug]: PNG info or any other send parameters to txt2img
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Whatever method I use to send parameters to txt2img end in nothing being sent and this error:
File "A:\AI_Files\stable-diffusion-webui\modules\shared.py", line 692, in cast_value
    value = expected_type(value)
ValueError: invalid literal for int() with base 10: '0.15'
No Image data blocks found.
No Image data blocks found.
No Image data blocks found.
No Image data blocks found.
Traceback (most recent call last):
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api
    result = await self.call_function(
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "A:\AI_Files\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 379, in paste_func
    v = key(params)
  File "A:\AI_Files\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 414, in paste_settings
    v = shared.opts.cast_value(setting_name, v)
  File "A:\AI_Files\stable-diffusion-webui\modules\shared.py", line 692, in cast_value
    value = expected_type(value)
ValueError: invalid literal for int() with base 10: '0.15'

### Steps to reproduce the problem

1. Go to infinity image browsing/ PNG info
2. Press send to txt2img
3. None of the parameters is populated in interface


### What should have happened?

Prompt and parameters should be filled to txt2img

### Commit where the problem happens

version: v1.3.2  •  python: 3.10.9  •  torch: 2.0.1+cu118  •  xformers: 0.0.17  •  gradio: 3.32.0

### What Python version are you running on ?

Python 3.10.x

### What platforms do you use to access the UI ?

Windows

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

### What browsers do you use to access the UI ?

Microsoft Edge

### Command Line Arguments

```Shell
set COMMANDLINE_ARGS=--opt-sdp-attention --upcast-sampling --opt-channelslast --api --xformers --opt-split-attention
set PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.9,max_split_size_mb:512
```


### List of extensions

a1111-sd-webui-tagcomplete"
Auto-Photoshop-StableDiffusion-Plugin"
adetailer"
sd-dynamic-prompts"
sd-webui-controlnet"
sd-web-ui-kitchen-theme"
canvas-zoom"
a1111-sd-webui-lycoris"
sd-3dmodel-loader"
sd-webui-txt-img-to-3d-model"
a1111-mini-paint"
sd-webui-aspect-ratio-helper"
stable-diffusion-webui-anti-burn"
deforum-for-automatic1111-webui"
Stable-Diffusion-Webui-Civitai-Helper"
sd-webui-ar"
CFG-Schedule-for-Automatic1111-SD"
model_preset_manager"
sd-webui-infinite-image-browsing"
sd-webui-additional-networks"
sd-webui-prompt-all-in-one"
sd-webui-inpaint-anything"
OneButtonPrompt"
model-keyword"
sd-webui-prompt-history"
SD-WebUI-BatchCheckpointPrompt"
sd-dynamic-thresholding"
sd-webui-openpose-editor"

### Console logs

```Shell
File "A:\AI_Files\stable-diffusion-webui\modules\shared.py", line 692, in cast_value
    value = expected_type(value)
ValueError: invalid literal for int() with base 10: '0.15'
No Image data blocks found.
No Image data blocks found.
No Image data blocks found.
No Image data blocks found.
Traceback (most recent call last):
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api
    result = await self.call_function(
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "A:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "A:\AI_Files\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 379, in paste_func
    v = key(params)
  File "A:\AI_Files\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 414, in paste_settings
    v = shared.opts.cast_value(setting_name, v)
  File "A:\AI_Files\stable-diffusion-webui\modules\shared.py", line 692, in cast_value
    value = expected_type(value)
ValueError: invalid literal for int() with base 10: '0.15'
```


### Additional information

Even the prompt history apply does not fill the txt2image parameters.