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

Adapted images are not updated when a document image has changed

    Details

      Description

      Reproducing steps

      1. Install Adaptive Media if needed
      2. Add an image to the Document Library
      3. Add a new structure for web content with an image field
      4. Create an associated template showing the image (EDIT: uncheck the box "Cacheable" in the section "Details" for 7.1.x and  7.0.x).
      5. Create a new web content with structure above and selected the uploaded image
      6. In a page, add web content display to show the web content
      7. Using the Developer Tools in you browser, toggle the device toolbar and modify the width of the page to "invoke" the adapted images (Preview and Thumbnail, by default)
        Expected: The same image is shown at different sizes and resolutions. In the network tab of the Developer Tools one can see 3 images are loaded, of the form:
        1. https://master.lfr.io/documents/20126/0/fresco.jpg/aeed7d5d-1d07-7405-1dba-a2a8f6178d02?t=1547029754119
        2. https://master.lfr.io/o/adaptive-media/image/37045/Preview-1000x0/fresco.jpg
        3. https://master.lfr.io/o/adaptive-media/image/37045/Thumbnail-300x300/fresco.jpg
      8. For that site, go to Content > Documents and Media, edit the document and upload a different image
      9. Go to the page where the web content is displayed and modify the width in the same way as before
        Expected: The new image is shown for all widths
        Observed: The new image is displayed at normal width (desktop), but the for smaller widths the previous image is shown. The "Preview" and "Thumbnail" images are obtained from cache.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                felix.zhang Felix Zhang
                Reporter:
                ricardo.couso Ricardo Couso
                Participants of an Issue:
                Recent user:
                Brian Chan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  38 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master