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

Image Thumbnail Size Definitions Not Considered

    Details

      Description

      Reproduction steps:

      1. Add these properties to portal-setup-wizard.properties

      dl.file.entry.thumbnail.custom1.max.height=500
      dl.file.entry.thumbnail.custom1.max.width=500
      dl.file.entry.thumbnail.custom2.max.height=800
      dl.file.entry.thumbnail.custom2.max.width=800
      

      2. Start the server
      3. Go to the Document Library of the Guest Site and Upload an image
      4. After waiting a few seconds (to generate the thumbails) open the entry and right click on the small image on the top left and select to open the image in a new tab. URL should look like this http://localhost:8080/documents/20126/0/exmaple.jpg/cde6c73a-aea1-5838-da6e-14b79d2891b7?version=1.0&t=1561450887488&imageThumbnail=1 and end with "imageThumbnail=1".
      6. Now change the 1 to 2 or 3 and hit enter

       Actual result: You will always receive the same image.
       Expected result: It would be that you will receive the image in the dimensions defined for the thumbnails.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                8 weeks ago

                Packages

                Version Package
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                Master