It'd be neat if Phabricator supported SVG avatars.
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Stalled | Feature | None | T76096 Phabricator avatar SVG support | ||
Open | None | T1016 SVG attachments are not displayed |
Event Timeline
Probably related with T1016: SVG attachments are not displayed. I'd say, if fixing T1016 makes fixing this task very easy, fine. Otherwise, considering that avatars are uploaded only once in a while, users can export to PNG without much hassle.
Phabricator avatars seem to be 50x50px currently. Getting a nicely rendered round shape seems pretty rough at such a low resolution/small size. SVG, on the other hand, would look crisp and beautiful (in compatible browsers).
From a technical point of view, I think this is effectively a duplicate of T1016: if we added SVG support, all contexts (including avatars, attachments, cover photos, etc) would support it. However, it currently seems unlikely that we'll add SVG support because of the very difficult security landscape and limited interest (largely only WMF).
Since this was filed, we've increased the stored resolution of avatars so they render more crisply on high DPI devices (if you upload a higher resolution source). This isn't as flexible/powerful as real SVG support, but achieves roughly the same effect in many of the most common cases (like viewing Phabricator on a 2x/Retina phone or laptop).