-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using the gr.Image
component in full-screen mode, the control buttons ("Download," "Remove Image") are pushed beyond the side of the browser window if the image resolution is high enough. This makes the buttons unavailable.
full_screen.mp4
Additionally, when working in full-screen mode, an issue similar to that described in #10268 occurs: the X and Y coordinates returned by the Image.select() method differ significantly from the values in normal mode. However, as the image resolution increases, the discrepancy decreases.
Have you searched existing issues? 🔎
- I have searched and found no existing issues
Reproduction
import numpy as np
import gradio as gr
def sepia(input_img):
sepia_filter = np.array([
[0.393, 0.769, 0.189],
[0.349, 0.686, 0.168],
[0.272, 0.534, 0.131]
])
sepia_img = input_img.dot(sepia_filter.T)
sepia_img /= sepia_img.max()
return sepia_img
examples = [
"https://rybakov-k.ru/images/20211222_Daniel_sieved_original_005_jpg.rf.43610430cf552f212d27a411ed4c30fb.jpg",
"https://rybakov-k.ru/images/2025-09-16_21-15-43_png.rf.3747d6088952e9e726c8ef88c308a475.jpg"
]
demo = gr.Interface(
sepia,
gr.Image(),
"image",
examples=examples,
)
if __name__ == "__main__":
demo.launch()
Screenshot
No response
Logs
System Info
Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 5.47.2
gradio_client version: 1.13.3
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 23.2.1
anyio: 4.8.0
audioop-lts is not installed.
brotli: 1.1.0
fastapi: 0.115.11
ffmpy: 0.5.0
gradio-client: 1.13.3
groovy: 0.1.2
httpx: 0.25.2
huggingface-hub: 0.34.3
jinja2: 3.1.6
markupsafe: 2.1.5
numpy: 2.2.6
orjson: 3.10.15
packaging: 24.2
pandas: 2.2.3
pillow: 11.2.1
pydantic: 2.10.6
pydub: 0.25.1
python-multipart: 0.0.20
pyyaml: 6.0.2
ruff: 0.9.10
safehttpx: 0.1.6
semantic-version: 2.10.0
starlette: 0.46.1
tomlkit: 0.13.2
typer: 0.15.2
typing-extensions: 4.13.2
uvicorn: 0.34.0
mcp is not installed.
pydantic: 2.10.6
authlib is not installed.
itsdangerous: 2.2.0
gradio_client dependencies in your environment:
fsspec: 2024.6.1
httpx: 0.25.2
huggingface-hub: 0.34.3
packaging: 24.2
typing-extensions: 4.13.2
websockets: 15.0.1
Severity
I can work around it
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working