gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Request Image shows in full_width and specified Height.

Open hpeiyan opened this issue 2 years ago • 1 comments

  • [ x ] I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.

Image shows in full_width and specified Height.

Describe the solution you'd like

Hope the feature can be code like below, after setting full_width and specified height, the image shows in specified height and auto put in the center.

gr.Image().style(full_width=True, height=60)

Additional context
there's Image's style feature that setting specified width and height, such as

components.Image(type="pil", label="image").style(height=260, width=300)

but, the image shows in left of container.

image

hpeiyan avatar Jun 14 '22 04:06 hpeiyan

Will take a look, thanks for opening.

aliabid94 avatar Jun 14 '22 16:06 aliabid94