Skip to content

When setting height in gr.Image, a vertical image doesn't fit within the component #10991

@hysts

Description

@hysts

Describe the bug

I think this is a regression.

gradio==5.24.0

gradio==4.0.2

related issue: #6050

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

with gr.Blocks() as demo:
    gr.Image(height=500)
demo.launch()

Screenshot

No response

Logs

System Info

gradio==5.24.0

Severity

I can work around it

Metadata

Metadata

Assignees

No one assigned

    Labels

    RegressionBugs did not exist in previous versions of GradiobugSomething isn't working🖼️ imageImage component

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions