SVG support for category pictures (and more?)



  • Major browsers have supported SVG for years (not sure about mobile browsers). Could NodeBB support this? I think this would be beneficial since the auto-scale without quality loss (from phone to mega-big screen). At this moment, NodeBB (at least the category picture upload) does not allow SVG.

    Note: there might be some security issues for common users, but for admins this might be acceptable (or let the owner of the site decide :)).


  • Plugin & Theme Dev

    Hello @igbuend, welcome on board 🙂

    +1 for SVG support.

    For now if you want to get SVGs working, add 'image/svg+xml' into the array within src/controllers/admin/uploads.js:48 😉

    EDIT: created pull-request...


Log in to reply
 

Suggested Topics

| |