Optimized image format

In the database/core/images_1 folder, there are many .bmp files with up to 6.60MB in size.
Likewise, an assortment of .PNGs >1 MB.
It would be great if Roon could run some preset optimization. Ideally user definable, e.g. convert and downsize to 1024x768 q60 JPEG.
I’m running manual cleanup and optimization (because of the out of memory crashes on my system), but since the assets are referenced in the database by filename, there is no easy way to compress non-JPG files without breaking links.