allow flexible image formats for previews
allow flexible image formats for previews (embeddings, hypernetworks, checkpoints, loras)
Is this needed?
It has a major performance impact due to file sizes - my generated previews are grids in high resolution so I can also look at them in details separately.
For example, 100 models/embeddings/etc = 100 x10mb png (1gb just for previews) files that need to be fetched over network VS 100 x 0.5mb jpg files.
network cost saving of jpg vs png is huge and hosting webui on a non-local system is a major thing.
network cost saving of jpg vs png is huge and hosting webui on a non-local system is a major thing.
Could webp be used? It's even better than jpg.
@FullBleed this PR already has webp support
another PR removed a fair bit of duplicated code and rather than try and merge this and it I ultimately decided to reimplement the functionality; hope this is ok with you.
@AUTOMATIC1111 as long as functionality is there, i'm not married to my code :)