Hi Support team,
We are using AEM 6.4 version and creating Image rendition from OOB functionality, the issue is we are adding a small file size image and after the renditions were created the rendition images more than actual size, for example 400 KB the rendition images are 3MB.
Is there any service pack which will resolve this issue or should we need to do anything with respect to creating a rendition?
Thanks for your reply, I have attach the screenshot below, the original is 215kb which is Jpg format and after the dam workflow is triggered the png files have these sizes. I have used OOB workflow to create the renditions,but somehow its creating the higher image. Am using
Adobe Experience Manager (184.108.40.206).
I was able to reproduce the mentioned behavior. First, let's try to understand why does it happen -
Say you have an image of x:y dimensions with some aspect ratio and some resolution (pixels per inch). You can resize (either downsize or upsize, downscale or upscale, resampling etc.) an image via
When you upsize/upscale an image, it adds more pixels to the existing image which is bound to increase its size.
com.day.cq.dam.handler.impl.process.ResizeImageProcess is configured to use "Maximum size" algorithm in OOB configuration to give the best results for generated image rendition.
Typically, a large, good quality image is generated via Photoshop/Illustrator etc. and then downsized in AEM because the lightweight java API doesn't provide a lot of features (usually just the quality and size of renditions) to play around with.
Now coming back to solutions:
1) Use the "minimal size" option in the arguments available keeping in mind that you can't modify the quality of image but the aspect ratio depending on mentioned width-height. This would still be more than the size of original image.
2) Ask your marketing team to provide with the good quality, largest rendition and then use the ThumbnailProcess step to downsize the large image to small images with the ability to control quality of renditions and center of image flag etc.
3) You may use another Image Processing java API to write custom code based on requirements.
API Reference: Workflow Process Reference - Assets
Hope that helps.