-
Type:
Story
-
Status: Closed
-
Priority:
Minor
-
Resolution: Discarded
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Out of the box Fragments > Image
-
Labels:
Intro/Context:
The story LPS-113806 allows to get automatic selection of the image resolution based on the viewport, but as we are adding the possibility to resize an image and also the possibility to add small fragments there is a chance that the image detail and size will not fit correctly.
The goal of this story is to allow a selection of image resolution based on the Fragment size and not the viewport.
-
When a user changes the width the image fragment (Image Variant in term of resolution TBD)
Then the image resolution is chosen based on the image width
-
Image selection rule (rule applies to width since no restriction for image fragment size):
- Assuming available image resolutions are size a, b, and c with a < b < c (from Adaptive Media)
- Assuming that the image width has size x
- If image width size x <a
- then selected image is a
- If image width size a< x < b
- then selected image is b
- If image width size b< x < c
- then selected image is c
- If image width size c< x and no image bigger than x
- then selected image is c