Highlighted

Dam upload asset

kirank84421130

22-03-2019

Hi

Could you please suggest me

when we have uploaded PDF thumbnail rendition is created. Is it possible to set background color for generated thumbnail by customizing Rendetion image processing step or Thumbnail process step?

Thanks,

Kiran Kumar

Replies

Highlighted

Gaurav-Behl

MVP

23-03-2019

Not by using OOB CreateThumbnailProcess API but using ImageMagick API. You may've to customize if OOB API version doesn't support the 'background' flag in your existing AEM version. Check ImageMagick API for more details.

sample command -

mime:image/jpeg,cmd:convert ${filename} -define jpeg:size=319x319 -thumbnail "319x319>" -background transparent -gravity center -extent 319x319 -write png:cq5dam.thumbnail.319.319.png

Best Practices for Configuring ImageMagick

CreateThumbnailProcess ("The Adobe AEM Quickstart and Web Application.")