Hi, i have a PR that adds webp support:
https://github.com/perkeep/perkeep/pull/1695When working on this i found i have some cover images (used in
camliContentImage) that are actually SVGs, so it would be nice for me if there was a way to treat SVGs as if they were regular images within perkeep. this isn't nearly as well supported as webp of course, i found this library which uses the go image system:
https://github.com/gen2brain/svg/blob/main/decode.goThis adds a lot of code in dependencies. Instead of this, I was thinking I could also add something that checks if you have a "convert" command available and shells out to that, otherwise just fails silently. So just works like it currently does, or will rasterize the image if you have imagemagick commands in your PATH.
I'd like to do something here, would be nice to be able to preview SVGs the same way I can with other images.
Quinn