Reputation: 6252
When creating a website/mobile app and accommodating for retina/high-res screens (which requires an image at twice the size), why is it not a good idea to include just the bigger image, and size that to half the size so you only have one image which, on non-retina images, will just become smaller (with the same amount of detail in the image).
That way you don't need double the amount of images since you have just one higher res image which can be reduced to half its size to accommodate for both screens?
Upvotes: 0
Views: 197
Reputation: 9822
3 reasons:
Upvotes: 1
Reputation: 1179
JPEG:
Get 2x sized image and save with hard compressing (up to 20-30%). Use original sizes for Retina, and half-sizes for other devices. This way can save (reduce sometimes) weight of image, and increases visual quality.
Example: 1024 × 640, 99 Kb vs 2048 × 1280, 75 Kb
Source (RU): http://pepelsbey.net/pres/clear-and-sharp/
Upvotes: 0
Reputation: 1856
It's all about loading times, a retina image takes much longer time to load. So on devices as doesn't have a high-res they will just slow things down...
Upvotes: 1
Reputation: 360
This is usually done to save resources. While the space required to save two images instead of one does not matter as much, the ram to save the extra resolution (on the non-retina device) does matter. Also the CPU has to be used to resize the image each time.
Upvotes: 0
Reputation: 337714
why is it not a good idea to include just the bigger image, and size that to half the size so you only have one image which which, on non-retina images, will just become smaller (with the same amount of detail in the image)
It's not a good idea because for the cases where people don't have high-res/retina mobile devices, you've just wasted ~40% of the images bandwidth.
Depending on the volume of traffic, the cost of that additional bandwidth will add up very quickly.
Upvotes: 2