this post was submitted on 03 Nov 2024
54 points (96.6% liked)

Ask Lemmy

27071 readers
3514 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try [email protected]


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

I find it very weird that Lemmy support gifs but does not support svg format, is there is a specific reason for that?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 39 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Because the backend for media storage in Lemmy is pictrs, and svg isn't one of the supported file format.

That said, I wish as the instance admin that we could store some custom emojis as svg :(

We could make them very light on resources, and easily scalable.

[–] [email protected] 24 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Looks like you can embed SVGs in markdown, and they render (tested in Tesseract and Lemmy-UI). So if you link them externally, support is technically there.

Lemmy Logo SVG

EmojiMart also supports SVG for custom emojis. So I guess if you host SVG custom emojis from a static folder, they should work as-is, though you'd need to add them to the database manually (which is a Lemmy UI limitation since it only presents an upload field rather than a URL field).

But yeah, pict-rs seems to be the roadblock for "native" support.

[–] aeronmelon 7 points 3 weeks ago (1 children)
[–] [email protected] 4 points 3 weeks ago (1 children)

Nice. I figure all the web-based ones should unless they've got a static list of image types that doesn't include svg. The installed apps could be hit or miss depending on how they're implemented.

[–] [email protected] 3 points 3 weeks ago (1 children)
[–] [email protected] 2 points 3 weeks ago

The spoiler tag doesn't work either, lol