Hacker News new | ask | show | jobs
by slalani304 804 days 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.
1 comments

The 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.

Oh ok, makes sense. I'll look more into FFmpeg, thanks.