Communities

(DEV) Codidact Meta
(DEV) Codidact Meta
(DEV) Writing
(DEV) Writing
Proposals
Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A Does SVG work in posts?

Does SVG work in the image upload? No. Only png, jpeg, jpg, gif (even if the wrong file extension such as png is used, svg is rejected). Does SVG in an <img> tag work? Yes in the edit previe...

3 answers  ·  posted 3mo ago by trichoplax‭  ·  edited 2mo ago by trichoplax‭

#3: Post edited by user avatar trichoplax‭ · 2024-07-05T12:50:11Z (2 months ago)
Add moderator-only tag (not yet mod only)
#2: Post edited by user avatar trichoplax‭ · 2024-06-29T17:42:22Z (3 months ago)
Also works in saved post
  • Does SVG work in the image upload? No. Only png, jpeg, jpg, gif (even if the wrong file extension such as png is used, svg is rejected).
  • Does SVG in an `<img>` tag work? Yes in the edit preview:
  • <img src="https://upload.wikimedia.org/wikipedia/commons/4/4f/SVG_Logo.svg">
  • Does SVG work in the image upload? No. Only png, jpeg, jpg, gif (even if the wrong file extension such as png is used, svg is rejected).
  • Does SVG in an `<img>` tag work? Yes in the edit preview, and in the saved post:
  • <img src="https://upload.wikimedia.org/wikipedia/commons/4/4f/SVG_Logo.svg">
#1: Initial revision by user avatar trichoplax‭ · 2024-06-29T17:41:52Z (3 months ago)
Does SVG work in posts?
Does SVG work in the image upload? No. Only png, jpeg, jpg, gif (even if the wrong file extension such as png is used, svg is rejected).

Does SVG in an `<img>` tag work? Yes in the edit preview:

<img src="https://upload.wikimedia.org/wikipedia/commons/4/4f/SVG_Logo.svg">