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

Thumbnails are not being rendered for jpg files

Details

    • 4
    • Regression Bug

    Description

      Steps to reproduce:

      1. Upload a jpg image in DM

      Expected result:
      No errors appear.

      Actual result:
      Image is added, but console errors appear.

      Exception in thread "liferay/adaptive_media_processor-3" java.lang.NoClassDefFoundError: Could not initialize class com.drew.imaging.jpeg.JpegMetadataReader
              at com.drew.imaging.ImageMetadataReader.readMetadata(ImageMetadataReader.java:111)
              at com.drew.imaging.ImageMetadataReader.readMetadata(ImageMetadataReader.java:89)
              at com.liferay.adaptive.media.image.internal.processor.util.TiffOrientationTransformer._getTiffOrientationValue(TiffOrientationTransformer.java:66)
              at com.liferay.adaptive.media.image.internal.processor.util.TiffOrientationTransformer.transform(TiffOrientationTransformer.java:47)
              at com.liferay.adaptive.media.image.internal.scaler.AMDefaultImageScaler.scaleImage(AMDefaultImageScaler.java:52)
              at com.liferay.adaptive.media.image.internal.processor.AMImageProcessorImpl.process(AMImageProcessorImpl.java:123)
              at com.liferay.adaptive.media.image.internal.processor.AMImageProcessorImpl.lambda$process$0(AMImageProcessorImpl.java:76)
              at java.util.ArrayList.forEach(ArrayList.java:1257)
              at com.liferay.adaptive.media.image.internal.processor.AMImageProcessorImpl.process(AMImageProcessorImpl.java:75)
              at com.liferay.adaptive.media.image.internal.processor.AMImageProcessorImpl.process(AMImageProcessorImpl.java:43)
              at com.liferay.adaptive.media.web.internal.messaging.AMProcessorCommand$2.execute(AMProcessorCommand.java:43)
              at com.liferay.adaptive.media.web.internal.messaging.AMMessageListener.doReceive(AMMessageListener.java:77)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
              at java.lang.Thread.run(Thread.java:748)
      

      Image thumbnails do not appear.

      If all Adaptive Media image variants are disabled, no console errors appear but thumbnails are still not generated.

      If the Adaptive Media module is disabled, thumbnails for jpg files are generated.

      This is not reproducible for png or gif files.

      Reproduced on:
      Tomcat 9.0.10 + MySQL 5.7.
      Portal master 52898a954721e11078b4eaf6a99ffe443da10da1

      Attachments

        Activity

          People

            austin.chiang Austin Chiang
            austin.chiang Austin Chiang
            Marta Elicegui Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 34 weeks, 3 days ago

              Packages

                Version Package
                Master