Expand my Community achievements bar.

SOLVED

Dam Image renditions error while executing the folder thumbnail!

Avatar

Level 4

Hi @Team,

 

I'm facing the below issue in the production server, and I didn't face this issue in my local author. Can anyone please help me to resolve this issue?

 

11.11.2020 14:35:57.560 *ERROR* [Thread-57] com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl error while executing folder thumbnail update job: /content/dam/asian/Images/PACKSHOTS-01.png

java.lang.IllegalArgumentException: width or height <= 0

       at com.day.image.Layer.init(Layer.java:3156) [day-commons-gfx:2.1.48]

       at com.day.image.Layer.<init>(http://Layer.java:490) [day-commons-gfx:2.1.48]

       at com.day.cq.dam.core.impl.ui.preview.FolderPreviewGenerator$FolderPreviewCreator.createPreview(FolderPreviewGenerator.java:292) [com.day.cq.dam.cq-dam-core:5.11.356]

       at com.day.cq.dam.core.impl.ui.preview.AssetDrivenFolderPreviewGenerator.generate(AssetDrivenFolderPreviewGenerator.java:245) [com.day.cq.dam.cq-dam-core:5.11.356]

       at com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.updateFolderThumbnail(FolderPreviewUpdaterImpl.java:144) [com.day.cq.dam.cq-dam-core:5.11.356]

       at com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.run(FolderPreviewUpdaterImpl.java:201) [com.day.cq.dam.cq-dam-core:5.11.356]

       at java.lang.Thread.run(Thread.java:748)

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @imadullakhan 

When ever we create a asset folder it automatically creates a thumbnail image for that asset folder with help of auto job com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl .This job is configurable in configmgr as shown below. In your case i suspect the job is trying to create a thumnail for asian/images folder using the image underneath that "/content/dam/asian/Images/PACKSHOTS-01.png " this PACKSHOTS-01.PNG has some issue with respect to his height or width or content. Check this image if image is corrupted .Re upload a new image and check the same.Hope it helps.

Rajashankar_0-1605306624444.png

 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi @imadullakhan 

When ever we create a asset folder it automatically creates a thumbnail image for that asset folder with help of auto job com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl .This job is configurable in configmgr as shown below. In your case i suspect the job is trying to create a thumnail for asian/images folder using the image underneath that "/content/dam/asian/Images/PACKSHOTS-01.png " this PACKSHOTS-01.PNG has some issue with respect to his height or width or content. Check this image if image is corrupted .Re upload a new image and check the same.Hope it helps.

Rajashankar_0-1605306624444.png

 

Avatar

Level 1

17.10.2023 13:27:50.089 *ERROR* [Thread-1912] com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl error while executing folder thumbnail update job: /content/dam/west-elm/mytestfolder/images (9).jpeg

java.lang.IllegalArgumentException: width or height <= 0

at com.day.image.Layer.init(Layer.java:3181) [day-commons-gfx:2.1.52]

at com.day.image.Layer.<init>(Layer.java:501) [day-commons-gfx:2.1.52]

at com.day.cq.dam.core.impl.ui.preview.FolderPreviewGenerator$FolderPreviewCreator.createPreview(FolderPreviewGenerator.java:292) [com.day.cq.dam.cq-dam-core:5.12.320]

at com.day.cq.dam.core.impl.ui.preview.AssetDrivenFolderPreviewGenerator.generate(AssetDrivenFolderPreviewGenerator.java:245) [com.day.cq.dam.cq-dam-core:5.12.320]

at com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.updateFolderThumbnail(FolderPreviewUpdaterImpl.java:151) [com.day.cq.dam.cq-dam-core:5.12.320]

at com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.run(FolderPreviewUpdaterImpl.java:208) [com.day.cq.dam.cq-dam-core:5.12.320]

at java.base/java.lang.Thread.run(Thread.java:829)

 

Getting error for al the assets uploading in aem 6.5.

Avatar

Level 1

I am getting this issue in AEM 6.5.20 with java 11 and core components 2.3.2

All the images are good, it is not corrupted. 

This happens when I drag and drop the asset on image or parsys container. Image displays fine however seeing the following error in error.log.

 

05.06.2024 00:16:48.460 *ERROR* [Thread-1725] com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl error while executing folder thumbnail update job: /content/dam/abc/projects/helloimg1654376472410.jpeg

java.lang.IllegalArgumentException: width or height <= 0

at com.day.image.Layer.init(Layer.java:3181) [day-commons-gfx:2.1.52]

at com.day.image.Layer.<init>(Layer.java:501) [day-commons-gfx:2.1.52]

at com.day.cq.dam.core.impl.ui.preview.FolderPreviewGenerator$FolderPreviewCreator.createPreview(FolderPreviewGenerator.java:292) [com.day.cq.dam.cq-dam-core:5.12.382]

at com.day.cq.dam.core.impl.ui.preview.AssetDrivenFolderPreviewGenerator.generate(AssetDrivenFolderPreviewGenerator.java:231) [com.day.cq.dam.cq-dam-core:5.12.382]

at com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.updateFolderThumbnail(FolderPreviewUpdaterImpl.java:151) [com.day.cq.dam.cq-dam-core:5.12.382]

at com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.run(FolderPreviewUpdaterImpl.java:208) [com.day.cq.dam.cq-dam-core:5.12.382]

at java.base/java.lang.Thread.run(Thread.java:834)

@imadullakhan @zalam @RajaShankar  have u found any solution for this?

Avatar

Level 1

Hi,

I had the same issue, but with .pdf files.
For me, the solution was to delete "folderThumnail" in the problem folder.

EmanuelZi_0-1722855660495.png