Dam upload asset

Avatar

Avatar

kirank84421130

Avatar

kirank84421130

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

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

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

Avatar

Avatar

kirank84421130

Avatar

kirank84421130

kirank84421130

26-03-2020

Thanks for the info.