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
BedrockMission!

Learn More

View all

Sign in to view all badges

Integration with ImageMagick

Avatar

Avatar
Validate 25
Level 3
vdhim23
Level 3

Like

1 like

Total Posts

135 posts

Correct Reply

9 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 3
vdhim23
Level 3

Like

1 like

Total Posts

135 posts

Correct Reply

9 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
vdhim23
Level 3

13-04-2018

Hi,

I am doing the ImageMagick integration with AEM in order to compress images. AEM version i am using 6.0 with SP3.

I have updated the DAM Asset Workflow.

Changed EPS thumbnails (powered by ImageMagick) Step as follows :

enter image description here

Web enabled rendition process step is as follows :

enter image description here

Problem :

  • Image size does not getting compress even increasing from 206KB to 208KB.

AEM Logs says ImageQuick processing the image, but size not reducing:

13.04.2018 15:05:43.111 *INFO* [JobHandler: /etc/workflow/instances/server0/2018-04-13_1/update_asset_439:/content/dam/A.jpg/jcr:content/renditions/original] com.day.cq.dam.core.process.CommandLineProcess execute: executing command line ["C:\Program Files\ImageMagick-6.9.9-Q16\convert.exe" -depth 8 -define jpeg:size=319x319 A.jpg -thumbnail 319x319 cq5dam.thumbnail.319.319.png] for asset [/content/dam/A.jpg]. (Size is 208KB of thumbnail generated) 

If I run Locally, I can see the file size reduced to 130KB.

"C:\Program Files\ImageMagick-6.9.9-Q16\convert.exe" -depth 8 -define jpeg:size=319x319 A.jpg  -thumbnail 319x319 cq5dam.thumbnail.319.319.png

Thanks,