Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-113808

As a Page Creator I want the selection of image to be based on image fragment size

    Details

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            tarik.demnati Tarik Demnati (Inactive)
            Reporter:
            tarik.demnati Tarik Demnati (Inactive)
            Engineering Assignee:
            Tarik Demnati (Inactive)
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package