Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Dam upload asset

Avatar

Level 1

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

2 Replies

Avatar

Level 10

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.")