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