Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Dam renditions for eps files

Avatar

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
preethamk694748
Level 3

20-09-2017

Hi team, I am not able to generate renditions for eps files

The mime type of original is "application/postscript"

In error.log it shows : cannot get original image for creating renditions , stream Not found.

Can anyone tell me how to generate renditions for eps files

Thanks

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

20-09-2017

Renditions are created for images - like GIF - not PostScipt files.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

20-09-2017

WHy would you even want different image sizes for a binary non-image file?

Avatar

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
preethamk694748
Level 3

20-09-2017

Actually few of EPs files were part of migrated assets , those assets have renditions.

So when i try to upload new eps files ..renditions are not created.. I'm not sure how renditions got created for those migrated assets..now our requirement is like ..same renditions should be created for newly uploaded EPs files...what can I do to create renditions for those eps files

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,369 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,369 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

20-09-2017

Please have a look at this:- https://docs.adobe.com/docs/en/aem/6-3/administer/content/dynamic-media/image-presets.html#Adobe Illustrator (AI), Postscript (EPS), and PDF file formats

// In the DAM Update Asset workflow, the EPS thumbnails step generates thumbnails for EPS files.

//To use Dynamic Media to preview and generate dynamic renditions for AI, EPS or PDF files, the following processing steps are required:

  • In the DAM Update Asset workflow, the Rasterize PDF/AI Image Preview Rendition process component rasterizes the first page of the original asset--using the configured resolution--into a cqdam.preview.png rendition.
  • The cqdam.preview.png rendition is then optimized into a PTIFF by the Dynamic Media Process Image Assets process component within the workflow.

You access Rasterize PDF/AI Image Preview Rendition process component options by way of the DAM Update Asset workflow.

Also, for any non-OOTB supported Asset MIME, we need to implement https://docs.adobe.com/docs/en/aem/6-3/develop/ref/javadoc/com/day/cq/dam/api/handler/AssetHandler.h...

Read documentation this will certainly help you.

~kautuk

Avatar

Avatar
Boost 5
Employee
ukgaurav
Employee

Likes

15 likes

Total Posts

86 posts

Correct Reply

31 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Employee
ukgaurav
Employee

Likes

15 likes

Total Posts

86 posts

Correct Reply

31 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
ukgaurav
Employee

20-09-2017

Use newly introduced library for this purpose as it processes application/postscript format also - Using PDF Rasterizer in AEM . This is available on 6.1, 6.2 and 6.3.

Alternatively Imagemagick is tool which you can configure which processes EPS files the doc of which can be found under this section - Assets Supported Formats

Thanks,

Gaurav

Avatar

Avatar
Level 1
patrickd5753255
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
patrickd5753255
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
patrickd5753255
Level 1

06-04-2018

Hi,

I followed the steps mentioned in Using PDF Rasterizer and see the following error in my instance:

*ERROR* [JobHandler: /etc/workflow/instances/server0/2018-03-25/update_asset_769:/content/dam/xxx1111.ps/jcr:content/renditions/original] com.day.cq.dam.pdfrasterizer.process.PdfRasterizerHandlingProcess execute: failed to execute command [launchpad/felix/bundle479/data/binaries/PDFRasterizer -d -p 1 -s 1024 -t PNG -i temp/cqdam206339072032650445.tmp/asset_a7de1f5e2aad4aea8c142de44ba83166] for asset [/content/dam/xxx1111.ps]:

org.apache.commons.exec.ExecuteException: Process exited with an error: 7(Exit value: 7)

at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:346)

at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)

at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)

at com.day.cq.dam.pdfrasterizer.process.PdfRasterizerHandlingProcess.execute(PdfRasterizerHandlingProcess.java:230)

at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)

at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:184)

at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:234)

at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:512)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:303)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:66)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:238)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Further investigation showed that the process "PDFRasterizer" exited with the following error:

ERROR : PDFDocOpen: Unable to open input File

ERROR : PDFLib Error Code 537001985, Error String: File does not begin with '%PDF-'.

ERROR : Error System: 2 Error Severity: 2 Error Number: 1

ERROR : PDFRasterizer Error being set: 7

As far as I know, postscript files start with %!PS-Adobe-3.0

The error is kind of correct but doesn't that mean that your solution can not work at all?

PDFRasterizer is not able to handle postscript files at all!