Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8257

thumbnail with image_max0x190 throw an exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.0RC5
    • 4.0RC4
    • None
    • None

      In your skin, request an image like https://xxxxx/preview/www/_contents-images/ametys-internal%253Asites/www/ametys-internal%253Acontents/grand-frais-sur-le-territoire-de-carcassonne-agglo-actualite/_metadata/illustration/image_max0x190/IMG_6433.jpg?objectId=defaultWebContent%3A%2F%2Fbd647fad-b418-42e1-848f-6612324112cf

      Then the image is not displayed
      Then there is an error in the logs

      Caused by: java.lang.IllegalArgumentException: Destination image height must not be less than or equal to 0 pixels.
              at net.coobird.thumbnailator.Thumbnails.validateDimensions(Unknown Source)
              at net.coobird.thumbnailator.Thumbnails.access$1700(Unknown Source)
              at net.coobird.thumbnailator.Thumbnails$Builder.size(Unknown Source)
              at org.ametys.core.util.ImageHelper._resizeThumbnailBuilder(ImageHelper.java:299)
              at org.ametys.core.util.ImageHelper._resizeImage(ImageHelper.java:172)
              at org.ametys.core.util.ImageHelper.generateThumbnail(ImageHelper.java:58)
              at org.ametys.cms.content.FileReader.generate(FileReader.java:235)
              at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processReader(AbstractCachingProcessingPipeline.java:921)
      
      

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: