Opened 2 years ago

Last modified 6 months ago

#13202 assigned enhancement

(easy) Use SVG icons on website

Reported by: diver Owned by: nobody
Priority: normal Milestone:
Component: Website/ Version:
Keywords: Cc: stippi
Blocked By: Blocking:
Has a Patch: no Platform: All


Icons look blurry when displayed on a high-dpi monitor.

Attachments (2) (35.8 KB) - added by humdinger 2 years ago.
Zip of IOM-exported SVGs
svg_png_icons.png (24.7 KB) - added by humdinger 2 years ago.
comparisson SVG - PNG

Download all attachments as: .zip

Change History (12)

comment:1 Changed 2 years ago by waddlesplash

Owner: changed from waddlesplash to nobody
Status: newassigned
Summary: Use SVG icons on website(easy) Use SVG icons on website

Should be pretty easy for anyone who wants to work on it - just export original HVIF files as SVG, add them to the repository, re-upload. (Also verify that they exported correctly - Icon-o-Matic's SVG export is still slightly buggy.)

comment:2 Changed 2 years ago by diver

Owner: changed from nobody to humdinger

humdinger, would you mind taking a look? :)

comment:3 Changed 2 years ago by humdinger

I exported all the icons I could find on the website to SVG, see the attached zip.

Unfortunately, IOM's SVG export as problems, esp. with certain gradients. See e.g. :

comparisson SVG - PNG

Top row the SVGs as rendered by Web+, below the PNGs as exported by IOM.
Firefox and Inkscape under Linux at times render different errors of IOM-exported SVGs. Mysteriously enough, Ubuntu's "Tracker" (how do they call their file manager?) and its standard image viewer render those SVGs perfectly!

I can't seem to figure out how to edit gradients in Inkscape. If anyone wants to take it from here...

Of course the real solution would be for IOM to export SVGs more correctly...

Changed 2 years ago by humdinger

Attachment: added

Zip of IOM-exported SVGs

Changed 2 years ago by humdinger

Attachment: svg_png_icons.png added

comparisson SVG - PNG

comment:4 Changed 2 years ago by humdinger

Owner: changed from humdinger to nobody

comment:5 Changed 2 years ago by diver

Could it be that missing gradients in SVG files is Web+'s fault? Need to check with other browsers.

comment:6 Changed 23 months ago by richienyhus

Just checked on Android 4.1 in Google Chrome and Android Internet. Both show missing gradients, although it is ever so slightly better than Web+'s attempt at rendering.

comment:7 Changed 23 months ago by diver

Cc: stippi added

comment:8 Changed 22 months ago by kainjow

SVGs don't render correctly on Safari 10.0.3 on macOS Sierra either.

If @2x and @3x pngs can be generated, then those could be used instead.

comment:9 Changed 6 months ago by joshas

SVG export in Icon-O-Matic produces invalid gradients, that's why they are rendered incorrectly #14210. As for Web+ rendering, it might still be lacking some SVG features support.

comment:10 Changed 6 months ago by Janus

There is a simple explanation for radial gradient icon-o-matic exports always the value cx and cy set to 0 and the radius to 64. Than it uses the matrix transformation to render the gradient... I think Web+ doesn't support gradientTransform. Ubuntu filemanager probably does.

Note: See TracTickets for help on using tickets.