Image size named transformation issue | Community
Skip to main content
Manu_Mathew_
Community Advisor
Community Advisor
September 26, 2021
Solved

Image size named transformation issue

  • September 26, 2021
  • 2 replies
  • 1210 views

Hi

 

I have tried uploading images say 16kb but the code uses ACS named transformation on the image and the image size is increasing say 164kb. Is there a way to retain the transformation of the uploaded image without increasing the size, keeping the dimensions as required? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Ok, so it looks that currently quality value is not set explicitly - default value which is 82 should be used. Could you please try to set quality param explicitly for example to 75. You can try to manipulate this value. Please have a look into the documentation how you can use quality param https://adobe-consulting-services.github.io/acs-aem-commons/features/named-image-transform/index.html

2 replies

Kishore_Kumar_
Level 9
September 26, 2021

Hi @manu_mathew_ ,

 

It will vary and it would be difficult to retain the size near to original or less than it.

 

Few years back it was the case in my legacy project as well and I resolved this using ImageMagick Java Wrapper class extending OOTB Adaptive Image servlet.

lukasz-m
Community Advisor
Community Advisor
September 26, 2021

Hi @manu_mathew_, I am not sure how your configuration of Named Transformation Image Servlet looks like, however did you consider to change quality param, and see if the results are acceptable?

Manu_Mathew_
Community Advisor
Community Advisor
September 26, 2021

Hi @lukasz-m 

 

We have something like this in the configurations- 

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
September 26, 2021

Ok, so it looks that currently quality value is not set explicitly - default value which is 82 should be used. Could you please try to set quality param explicitly for example to 75. You can try to manipulate this value. Please have a look into the documentation how you can use quality param https://adobe-consulting-services.github.io/acs-aem-commons/features/named-image-transform/index.html