Option to download as png, jpeg or regular image format

#8
by rdjarbeng - opened

The current download option on the app downloads the file as a .webp file which is not a very common image format can it be made so that the option to download sends a png or jpeg instead

It is a bit cumbersome to make the file format switchable, but if you just want to fix PNG, this is all you need to do.

result = gr.Image(label="Generated Image")

↓

result = gr.Image(label="Generated Image", format="png")

Thanks. Now should I submit a PR? πŸ€”
Technically not my code

I don't mind, but I wonder if it's okay to change the file format without permission.
They are both lossless formats, so is it okay?
Well, if it's not okay, it's okay just to get rejected.🀯

Sign up or log in to comment