Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gr.ImageEditor hides the editors on Gradio 5.x #9694

Open
1 task done
apolinario opened this issue Oct 14, 2024 · 2 comments
Open
1 task done

gr.ImageEditor hides the editors on Gradio 5.x #9694

apolinario opened this issue Oct 14, 2024 · 2 comments
Labels
bug Something isn't working 🖼️ ImageEditor Priority High priority issues

Comments

@apolinario
Copy link
Contributor

apolinario commented Oct 14, 2024

Describe the bug

The tools to edit the image are hidden when a square or portrait image is uploaded, rendering the demo unusable (at least with 2 Gradio blocks columns)

image

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

Here is a demo with repro: https://huggingface.co/spaces/ameerazam08/FLUX.1-dev-Inpainting-Model-Alpha-GPU

Screenshot

No response

Logs

No response

System Info

gradio==5.0.1

Severity

I can work around it

@apolinario apolinario added the bug Something isn't working label Oct 14, 2024
@abidlabs abidlabs added the Priority High priority issues label Oct 15, 2024
@danilwithonei
Copy link

just increase the height value of gr.ImageEditor

    inputs=gr.ImageEditor(
        height=1000, #<---
        brush=gr.Brush(
            default_size=10,
            default_color="#000000",
        ),
    ),

@apolinario
Copy link
Contributor Author

Great workaround, thanks! But probably better to have it resize based on the image size, so it doesn't occupy a huge height

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🖼️ ImageEditor Priority High priority issues
Projects
None yet
Development

No branches or pull requests

4 participants