The SVG was 20MB. The PNG version at huge resolution was 20kB.
PNG is really good when you have a few flat colors. SVG is really bad when you have lots of fine detail.
The SVG was 20MB. The PNG version at huge resolution was 20kB.
PNG is really good when you have a few flat colors. SVG is really bad when you have lots of fine detail.
What I mean is, if you have a million pixels of the same color (0xDEADBEEF maybe), then PNG will call that 1,000,000 x OxDEADBEEF. So, it scales very nicely for few-color, sparse or "blocky" images.
Well maybe not huge huge. Like 1000px wide so they look nice on retina screens.
The key is that these images were just 2 contiguous color areas. Black and transparent. PNG is really good for that because the compression algorithm works on the basis of contiguous color areas.
It’s incompetence to blame rather than file-size, maybe designers or someone in the briefing process that is uninformed that confuses the requirements for everyone else.
Also… I don’t trust Figmas quality with exported SVG. Just type some text, export it and see how it degrades…
Couldn’t find the source of the issue so could only assume the SVG data was being compressed on export.
We decided to only use it to share graphic across the team, in any instance we were working with type we used illustrator.