Integration with ImageMagick

vdhim23

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,