Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

ThumbnailGenerator class has been removed from AEM 6.0

Avatar

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

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Correct answer by
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. 

Avatar

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 

Avatar

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