LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.11k stars 863 forks source link

Add support for Scalable Vector Graphics (SVG). #2156

Open WhyIsEvery4thYearAlwaysBad opened 2 years ago

WhyIsEvery4thYearAlwaysBad commented 2 years ago

For front end issues, use lemmy-ui

Is your proposal related to a problem?

Yes.

Bitmap formats: GIF, PNG, and JPEG, are supported; but there are no vector formats supported, like SVG.

Vector Graphics are popular with iconography and vexillography.

Describe the solution you'd like

Allow SVG as a picture format.

Describe alternatives you've considered

(Write your answer here.)

Additional context

None.

dessalines commented 2 years ago

We can easily add this, but first support for it would need to be added to @asonix 's pictrs: https://git.asonix.dog/asonix/pict-rs

WhyIsEvery4thYearAlwaysBad commented 2 years ago

Ok.

It's always possible to post the SVG source code and achieve the same effect.

db0 commented 1 year ago

I want to use the .svg as a emojis, so posting the source every time won't work very well.

I asked the pict-rs developer to support this but it's very low on their priorities

db0 commented 1 year ago

I did manage a workaround by hosting the image elsewhere and then putting the link in the emoji field: https://lemmy.dbzer0.com/comment/615979

but not everyone has an external host