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)
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)