Commit Graph

4 Commits

Author SHA1 Message Date
Freddy Boulton
d95d647894
Fix tests (#6701) 2023-12-07 14:22:16 -05:00
Hannah
830b6c0e6e
Process and convert .svg files in Image (#6500)
* process and convert svg files with cariosvg

* add changeset

* remove svg2png and keep svg format

* add svg image test

* formatting

* revert typing format

* update docstrings

* Remove postprocessing change

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-22 00:50:40 +01:00
Freddy Boulton
3953a14675
Preserve original image extension in backend processing (#6456)
* Preserve image extension

* add changeset

* add changeset

* Fallback to png if failure. Try to save to original format for PIL in postprocess

* Update gradio/image_utils.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Keyerror

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-16 17:47:47 -05:00
Freddy Boulton
2f805a7dd3
Image Fixes (#6441)
* Fix + tests

* Rest of code lol

* add changeset

* lint

* lint + comments

* bind to upload

* add changeset

* Update breezy-foxes-search.md

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-16 09:45:48 -05:00