2

When I upload pdf file to cq5 I see following structure in my crx:

enter image description here

This structure looks strange for me. I don't understand why do I see png renditions here.
How can I use these renditions?

My current vision that these renditions couldn't be helpful. Thus I want to achieve that after uploading PDF files into DAM these renditions doesn't generate.

Can you provide steps for this?

enter image description here enter image description here enter image description here

after my changes in workflow: enter image description here

before my changes:

enter image description here

update 2

I set dimensions follows: enter image description here

but I see old result after pdf and jpg uploading

gstackoverflow
  • 36,709
  • 117
  • 359
  • 710

1 Answers1

4

The purpose of these renditions is, as per their name, that they can be used to display thumbnails of the documents — e.g. you may want to display the front cover of each PDF if in a gallery section.

The thumbnail is created by the "DAM Update Asset" workflow (http://www.example.com/etc/workflow/models/dam/update_asset.html; until v5.6) in its Thumbnail creation step — I'm not sure that you can configure this to skip certain file types.

To get around this, you could remove this step and replace it with an Create Web Enabled Image step — this will allow you to specify MIME-types to skip over in its arguments panel:

enter image description here

Alternatively, you could write a bespoke Process class which would use ImageMagick to generate thumbnails but ignoring PDFs.

anotherdave
  • 6,656
  • 4
  • 34
  • 65
  • at this link http://www.example.com/etc/workflow/models/dam/update_asset.html I see following information: *Example Domain This domain is established to be used for illustrative examples in documents. You may use this domain in examples without prior coordination or asking for permission. More information...* – gstackoverflow Jul 29 '14 at 18:39
  • And one more question: we have a lot of environments. I cannot access to each environment and change step using user interface. Can I achive it by code manipulation? – gstackoverflow Jul 29 '14 at 19:51
  • Just replace example.com with the address of your box, e.g. `http://localhost:4502`. To move workflows between environments, you could make them part of a CRX package - either through the package manager or by exporting with VLT and adding to your version controlled code. They're stored in the JCR under `/etc/workflow/models`. – anotherdave Jul 29 '14 at 21:55
  • I steps according your manual but anuway I see renditions for pdf. Please read update – gstackoverflow Jul 30 '14 at 13:08
  • @gstackoverflow Could you cross-check that the mime-type of the file you're uploading *is* `application/pdf` & see if the process is logging out anything when the file is uploaded? – anotherdave Jul 30 '14 at 13:23
  • I forgot to click save workflow. Now I have another result. But problem that for jpg and for pdf I see same result without renditions. I want to see different behaviour for pdf and jpg. How can I check uploaded myme-type? – gstackoverflow Jul 30 '14 at 13:45
  • 1-dc:format String application/pdf 2-dc:format String image/jpeg – gstackoverflow Jul 30 '14 at 13:59
  • @gstackoverflow It may be because you haven't specified a width/height for the rendition you want — are you seeing any output in the logs? – anotherdave Jul 30 '14 at 14:49
  • Tomorrow I will see logs. Maybe it would helpful. About specify dimensions. At this menu I can specify only one set of dimension(one width one height). All another mime-types should work under the old. In old version I set 3 different dimensions and as you can see I got 3 pictures with different resolutions. – gstackoverflow Jul 30 '14 at 20:30
  • Thanks for answer. I try one more time and I got a success in general. – gstackoverflow Aug 01 '14 at 09:03
  • @gstackoverflow Yeah, I think this process step will just create a single rendition, but you can add as many of these steps as required. Glad you got it sorted :) – anotherdave Aug 01 '14 at 09:44