Supporting high-resolution devices
Posted: Mon Mar 31, 2014 3:56 am
I understand that now you can have different images for different screen densities and LC can choose them if named correctly and referenced in a certain way.
What should be the attributes of the images for the different resolutions/densities? For example, do I just create the same image with four times the pixels for Retina devices? (double horizontal and double vertical?) What image attributes are important for this, just the pixels or anything else, too? Does the image type matter? png vs jpg vs xxx ?
And if I don't want to use the naming and file structure conventions that LC needs for making these choices, how could I implement this functionality myself?
Which properties of which objects do I query for what? Anything in particular to consider? Is there a good sample stack demonstrating this?
As always, thanks for any insights.
Werner
What should be the attributes of the images for the different resolutions/densities? For example, do I just create the same image with four times the pixels for Retina devices? (double horizontal and double vertical?) What image attributes are important for this, just the pixels or anything else, too? Does the image type matter? png vs jpg vs xxx ?
And if I don't want to use the naming and file structure conventions that LC needs for making these choices, how could I implement this functionality myself?
Which properties of which objects do I query for what? Anything in particular to consider? Is there a good sample stack demonstrating this?
As always, thanks for any insights.
Werner