2 ms·
Are the images being compressed losslessly or they lose quality? I've played around with image compression in Electron JS and haven't found a good solution, so
by slalani304 2y ago
Are the images being compressed losslessly or they lose quality? I've played around with image compression in Electron JS and haven't found a good solution, so any resources are greatly appreciated.
- correa_brian 2y agoThe resizing process doesn't introduce any compression artifacts but there is some loss when the images are processed by CLIP, depending on the dimensions. CLIP likes perfect squares, so that's a limitation on the model size. In terms of general compression are you familiar with FFmpeg? It has support for lossless compression into a bunch of different image formats.
- slalani304 2y agoOh ok, makes sense. I'll look more into FFmpeg, thanks.