mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
567 stars 152 forks source link

Support jpg and webp #227

Closed appleplum closed 6 months ago

appleplum commented 7 months ago

It's already possible to change extension / image format in fooocus by changing the extension in private_logger.py and then do something like this. if image_extension == 'jpg' or image_extension == 'webp': Image.fromarray(img).save(local_temp_filename, quality=95, optimize=True, progressive=True) else: Image.fromarray(img).save(local_temp_filename)

mrhan1993 commented 7 months ago

Planned

PlexPt commented 6 months ago

https://github.com/lllyasviel/Fooocus/pull/1863

mrhan1993 commented 6 months ago

testing

mrhan1993 commented 6 months ago

you can now update and have a try