| ▲ | jonathanlydall an hour ago | |||||||
I'm pretty sure the same issue happens with PNGs, which being lossless are generally good for icons as they don't land up with compression artifacts like what happens in JPEGs (which the author points out are really for photographs), they also support alpha blending. When Chrome introduced this "optimization" and it made it through to an Electron release which we were upgrading to, it really messed up the icons in a lot of places in our product such that we had to hold off the upgrade until we had SVGs to replace them. SVGs also have the advantage of being able to respond to light/dark mode. We just needed to put each icon in its own shadow DOM to avoid styles clashing between the different SVGs if they happen to be named the same which was a bit of an annoyance for our graphic designer. | ||||||||
| ▲ | gutechh 35 minutes ago | parent | next [-] | |||||||
Ah this is weird! My understanding is that png doesn't store the images like jpg at all, they use a palette of all the colors in the image. Then each pixel is a reference to this palette. So it's not IDCT scaling, but I imagine there are other tricks to save on space/cpu when decoding pngs. | ||||||||
| ▲ | StilesCrisis an hour ago | parent | prev [-] | |||||||
You were using bitmap icons that were more than 8x larger on each axis than necessary? Why? | ||||||||
| ||||||||