Hacker News new | ask | show | jobs
by rshm 1636 days ago
Any particular reason on using png instead of svg directly to display images.

I tried to copy as well as open in new tab, got checkered.png instead. With noun project for example, one can right click and copy the image link, which can be pasted on drawio.

1 comments

Using PNGs because there's some cross-browser issues with displaying SVGs from a number of the open source sets that I've collected. Rather than going icon by icon to resolve those (which isn't feasible), I render a PNG, make the PNG downloadable (via the button), and make the SVG downloadable (also via the button).

Could probably make it so you can right-click the image and open it in a new tab. Will take a look at that :)