2 ms·
This level of complexity for images (1x and 2x) is madness. And the real kicker is, it doesn't even account for the kind of variable zooming people do on their
by crazygringo 14y ago
This level of complexity for images (1x and 2x) is madness. And the real kicker is, it doesn't even account for the kind of variable zooming people do on their phones, which can result in 1.73x, 2.79x, 4.23x, etc.
I've found it vastly simpler to adopt a much more flexible and simpler approach. Just include single images (not multiple versions), and pick resolutions that are appropriate for the image -- that convey the level of detail the image deserves. And when you up the resolution, knock down the JPEG quality.
Sometimes this means 3x or 4x for bullets or icons mixed in with body text. Sometimes it means 1x for photographs. Sometimes it means 3x for small illustrations and 1.5 for larger ones.
Don't worry about things being pixel-perfect, because pixels don't exist anymore. Just aim for whatever resolution communicates the necessary meaning of each element. Good judgment is your friend.