Hi, So upon running the wizard, instead of using a normal jpeg/png for the logo, I tried to upload an SVG file in place (for primary and compact logo versions) and it didn’t work. Is there anyway there could potentially be support for SVG Logos? It would work perfectly with all screen sizes (as it scales effortlessly) and is extremely compact (my JPEG takes 15kb while my SVG takes 1kb)
AI-generated summary
SVG Logo Upload Support
The discussion revolves around adding support for SVG logos in Discourse. Blackglade initially tried to upload an SVG file but encountered issues. codinghorror explained that email clients do not support SVG, which is a limitation. However, awesomerobot later revealed that SVG files can be used for site logos, and a separate digest logo setting allows for different file types.
Amethi suggested having two logo options: one for email and another for the on-site logo, citing issues with Chrome downsizing PNGs. codinghorror provided an optimization technique for PNGs using zopfli.
Ultimately, Amethi discovered that the issue was with their specific SVG file, and another file worked successfully.
The problem is email. Email clients do not like svg.
Ahh okay! That makes sense!
Also if it is a jpeg i suspect it should not be, otherwise it would not translate to SVG well. Have you tried png? Can you post it here?
Yeah, I just ended up realizing that using PNG with a transparent background is actually much more compressible than using JPEG with a white background…
the primary logo is the main annoyance since the added text doesn’t bode well for JPEG Compression, but oh well!
Convert to 8-bit PNG w/alpha (you don’t need more than 256 colors for this) then zopfli:
C:\Users\Jeff\Desktop>zopflipng Untitled.png Untitled.png
Optimizing Untitled.png
Filter strategy zero: 6459 bytes
Result is smaller
Input size: 10100 (9K)
Result size: 6459 (6K). Percentage of original: 63.950%
Gets it down to 6,459 bytes.
Potremmo avere due opzioni di logo nella sezione branding? Un logo per email per le immagini convenzionali e supporto SVG per il logo sul sito? Sto avendo davvero difficoltà con un cambio di logo che stiamo affrontando: Chrome non ridimensiona bene i file PNG. Nessun suggerimento CSS che ho trovato funziona, e vogliamo mantenere il supporto per schermi ad alta densità di pixel (high-DPI).
Logo sfocato su schermi a densità standard in Chrome:
Credo che l’SVG sia ormai uno standard consolidato per i loghi. Sarebbe fantastico vedere l’implementazione del supporto SVG in Discourse dove possibile.
Sono aperto a qualsiasi altra suggerimento per soluzioni alternative?
I file SVG sono ora utilizzabili per i loghi del sito; ad esempio, il logo qui su Meta è un file SVG. È disponibile un’impostazione separata per il logo della digest dove puoi caricare un tipo di file diverso.
Ah, che imbarazzo. Sembra che ci sia un problema con il mio SVG. Ne ho provato un altro e ha funzionato. Grazie mille ![]()

