I am using the dynamic media to render images in AEM 6.2. However when I try to render a transparent image using Dynamic Media , the resulting image is turned to a normal image with white background.
For Example , content path in DAM : /content/dam/silversea-com/19.png
Rendering using dynamic media with this path : /is/image/content/dam/silversea-com/19.png??wid=90&hei=90
(even /is/image/content/dam/silversea-com/19.png for that matter )
Any idea why this is occurring ?
Thanks
Sachin
Solved! Go to Solution.
Views
Replies
Total Likes
Try rendering the image using png-alpha format , like adding &fmt=png-alpha to the url.
Moving this to AEM Assets topic!!
Views
Replies
Total Likes
Try rendering the image using png-alpha format , like adding &fmt=png-alpha to the url.
Except adding a format string isn't possible when using something like Core Image.
How do we get Dynamic Media and Core components to respect transparency on images? If the source images has an alpha channel it stands to reason that the resulting variations would retain that.
When utilizing the Image Component V2 with the Dynamic Media (DM) feature enabled, it becomes possible to incorporate an image modifier. By adding parameters such as "&fmt=png-alpha" or "&fmt=webp-alpha," you can enable the alpha channel and transparency. I recommend referring to the information provided in the help article at the following link:
Views
Likes
Replies