coffeebank/coffee-maubot

urlpreview: convert svgs to png

ajkessel opened this issue · 0 comments

Element clients don't support SVG format images, so urlpreview returns a broken image if the previewed image is SVG. This patch, which adds to my upload image patch, converts SVGs to PNG before uploading. This would require an additional python library (cairosvg) which is not installed by default, so perhaps it could be set to only import the library and perform the conversion when the library is present, rather than throwing an exception.
better_image_support.patch