Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

AEM 6.4: IllelgalArgumentException after uploading pdf files into DAM

Avatar

Level 7

Hello everyone,

 

It's time form me to ask a new question :-):

Whenever I create an assert from a pdf file, the following error occurs in error.log:

 

[Thread-72] com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl error while executing folder thumbnail update job: /content/dam/mypath/apdffile.pdf
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>(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.394]
at com.day.cq.dam.core.impl.ui.preview.AssetDrivenFolderPreviewGenerator.generate(AssetDrivenFolderPreviewGenerator.java:245) [com.day.cq.dam.cq-dam-core:5.11.394]
at com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.updateFolderThumbnail(FolderPreviewUpdaterImpl.java:151) [com.day.cq.dam.cq-dam-core:5.11.394]
at com.day.cq.dam.core.impl.ui.preview.FolderPreviewUpdaterImpl.run(FolderPreviewUpdaterImpl.java:208) [com.day.cq.dam.cq-dam-core:5.11.394]
at java.lang.Thread.run(Thread.java:748)

I use the provided page on authors instance. After reloading the assets page in browser via F5, the thumbnail will be displayed. How can it be fixed or is it not possible?

 

Thanks in advanced.

3 Replies

Avatar

Level 7

Thanks for you answer. Based on your posted link and a youtube video I assume that uploaded pdf file does not contain any thumbnail images. I will test it with such pdf file with a thumbnail image and give a feedback.

Avatar

Level 7

Recently I tested my therory with a pdf which contains thumbnails and above error message didn't appear in log file. So whoever has marked prematurely as correct answer, he was wrong