com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl error while executing folder thumbnail update job: /content/dam/assets/comcast/site/test-prod.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)
at com.day.cq.dam.core.impl.ui.preview.AssetDrivenFolderPreviewGenerator.generate(AssetDrivenFolderPreviewGenerator.java:231)
at com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.updateFolderThumbnail(FolderPreviewUpdaterImpl.java:151)
Checked OSGi Config for FolderPreviewUpdaterImpl
Verified Renditions
Added FolderPreviewGenerator Config
com.day.cq.dam.core.impl.ui.preview.FolderPreviewGenerator
preview.width = 320
preview.height = 240Reprocessed Assets
Restarted Bundles
Views
Replies
Total Likes
Can you check if this happens on vanilla instance as well?
can you refer this as it has similar ask as yours https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dam-image-renditions-error...
Try with Folder Preview Rendition Regex as cq5dam.web.*
I have tried using the Regex cq5dam.web.* but it still throws the same error, I also tried uploading different images but still got the same error.
Have you checked this on your new instance. it seems you custom configs might be causing the issue. my local instance is on AEM 6.5.21 and it doesn't have the issue.
Can you also try creating a new folder in your aem dam and try to upload the new valid assets and see how it responds? it might be possible the existing image might be corrupted
Views
Replies
Total Likes
Hi @BhavinBhanu This is a common AEM 6.5 issue where the Folder Thumbnail Update Job fails due to the
Layer.init()
method receiving invalid dimensions (width or height <= 0). The problem typically occurs when AEM tries to create folder thumbnails but encounters issues with image dimension detection or rendition processing.
project and experiencing the common "width or height <= 0" error with folder thumbnail generation. This error occurs when AEM's FolderPreviewGenerator tries to create thumbnails but encounters invalid image dimensions.
Here are the most effective solutions to resolve this issue:
Create a configuration to disable folder preview updates entirely or configure it properly:
File:
ui.config/src/main/content/jcr_root/apps/wknd/osgiconfig/config.author/com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.cfg.json
{ "createFolderPreview": false, "updateFolderPreview": false }
File:
ui.config/src/main/content/jcr_root/apps/wknd/osgiconfig/config.author/com.day.cq.dam.core.impl.ui.preview.FolderPreviewGenerator.cfg.json
{ "preview.width": 320, "preview.height": 240, "rendition.regex": "cq5dam.thumbnail.319.319.png" }
File:
ui.config/src/main/content/jcr_root/apps/wknd/osgiconfig/config.author/com.day.cq.dam.core.impl.ui.preview.FolderPreviewGenerator.cfg.json
{ "preview.width": 320, "preview.height": 240, "rendition.regex": "cq5dam.web.1280.1280.*" }
If you need folder previews, create a custom workflow step configuration:
File:
ui.config/src/main/content/jcr_root/apps/wknd/osgiconfig/config.author/com.day.cq.dam.core.impl.ui.preview.AssetDrivenFolderPreviewGenerator.cfg.json
{ "enabled": true, "preview.width": 320, "preview.height": 240, "fallback.enabled": true }
The error occurs because:
Invalid Dimensions: The Layer.init() method receives width or height values ≤ 0
Rendition Selection: AEM can't find a suitable rendition or the selected rendition has invalid dimensions
Metadata Issues: Image metadata might be corrupted or missing
Immediate Fix: Use Solution 1 to disable folder preview generation entirely
Long-term Fix: Use Solution 2 with specific rendition targeting
The error affects all images because it's a system-wide configuration issue
Restarting bundles alone won't fix the core configuration problem
The issue is common in AEM 6.5 environments with high-resolution images
Choose Solution 1 for immediate resolution, or Solution 2 if you need folder thumbnails to work properly.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies