You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #24263, and initially raised for .webp format at Codeberg, also avatars in .svg format are not accepted/recognized as an image. It would be nice if that format gets accepted as well.
The problem is: While it might seem like exactly the same feature, it is completely different: webp is a "normal" image that works with the <img> tag. svgs however need their own tag (<svg>).
So, this would need a complete rewrite of the logic.
That is such a huge change that I don't think the benefit is worth the effort.
It's far easier to require users to convert their svgs beforehand.
So, from my side this is a weak reject.
I don't know how other maintainers see it.
Duplicate with #8707. The challenge with SVG is security as SVGs can contain scripts so a proper sanitizer is needed. <img> tag will otherwise work fine.
Activity
delvh commentedon Apr 21, 2023
The problem is: While it might seem like exactly the same feature, it is completely different:
webp
is a "normal" image that works with the<img>
tag.svg
s however need their own tag (<svg>
).So, this would need a complete rewrite of the logic.
That is such a huge change that I don't think the benefit is worth the effort.
It's far easier to require users to convert their svgs beforehand.
So, from my side this is a weak reject.
I don't know how other maintainers see it.
yardenshoham commentedon Apr 21, 2023
I think you can do
<img>
with SVG https://caniuse.com/svg-imgdelvh commentedon Apr 21, 2023
Okay, TIL.
In that case, my comment above is now outdated and no longer a blocker.
wxiaoguang commentedon Apr 22, 2023
Since JS code could be embedded in SVG, the security concern should be addressed first.
silverwind commentedon Apr 22, 2023
Duplicate with #8707. The challenge with SVG is security as SVGs can contain scripts so a proper sanitizer is needed.
<img>
tag will otherwise work fine.