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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

ThumbnailGenerator class has been removed from AEM 6.0

david_zamora
Level 1
Level 1

Hi,

We have a class that extends from CreateThumbnailProcess. We are overriding the execute method.

Inside this logic, we have created an instance for the class ThumbnailGenerator in order to generate a new Thumbnail according to the arguments loaded for it. See the code below:

ThumbnailGenerator generator = new ThumbnailGenerator(asset, combined); generator.generate(ThumbnailGenerator.parseConfig(args));

We need to upgrade AEM from 5.6.1 to 6.0 and in this new version this is different since the class ThumbnailGenerator has been deprecated. Someone can help me and tell me how to do this behavior on AEM 6.0 please?

Thanks in advance.

David

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10
0 Replies
smacdonald2008
Correct answer by
Level 10
Level 10

Use this API:

http://docs.adobe.com/docs/br/aem/6-0/develop/ref/javadoc/com/day/cq/dam/api/renditions/RenditionMak...

I am looking for code examples on this API to share on this thread. 

david_zamora
Level 1
Level 1

Hi smacdonald2008,

Thanks for your answer.

The problem right now is that we are creating some images (using the class BufferedImage) with customize values, this image is used as parameter in order to create the ThumbnailGenerator.

Now, I don't have the possibility of passing those BefferedImages. So how can I used renditionMaker and passed as parameter images?

Thanks in advance.

David 

ayyappa_venkate
Level 2
Level 2

Hi David Zamora,

I'm also facing the same kind of issue, let me know how you have manged it further to solve the mentioned issue?

 

Hi smacdonald2008,

If you found any code samples on RenditionMaker and the methods which are part of this API, kindly post them.

I found one here : http://experience-aem.blogspot.in/2015/01/aem-6-sp1-rendition-maker-sample.html, let us know if there are any?

 

Thanks,

Ayyappa