-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Use gr.Dropdown for Image Formats #16687
Conversation
Questions
|
use DropdownEditable so user can input other formats if they require it make the default png the first on the list
I change it to use DropdownEditable if they require other formats I think it's better for them to convert the file to the format afterwards I'm not too happy with my wording about manual input of other formats |
How about: .link("PIL docs", "https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html")
.info("manual input of other formats is possible, but compatibility is not guaranteed") |
Oh right, I forgot custom Definitely B. imho |
LGTM |
LGTM too 👍 |
Description
Simple Description: Currently, the setting for the image formats is a
Textbox
, without any validation for it afaik during my brief tracing. So if the user made a typo or entered an unsupported format, it would simply raise errors when saving images..png
will still save without errors, with the filename simply being<filename>..png
;But surely this would cause problems somewhere else?)Summary of Changes: Added
gr.Dropdown
to the options, with a list of supported formats as thechoices
Checklist