Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urlpreview: convert svgs to png #34

Open
ajkessel opened this issue May 31, 2024 · 0 comments
Open

urlpreview: convert svgs to png #34

ajkessel opened this issue May 31, 2024 · 0 comments

Comments

@ajkessel
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant