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

Image size named transformation issue

ManuMathew1994
Level 4
Level 4

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? 

1 Accepted Solution
lukaszm
Correct answer by
Level 7
Level 7

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.htm...

View solution in original post

4 Replies
kishorekumar14
Level 10
Level 10

Hi @ManuMathew1994 ,

 

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.

lukaszm
Level 7
Level 7

Hi @ManuMathew1994, 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?

lukaszm
Correct answer by
Level 7
Level 7

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.htm...