Skip to main content
sachinn20956098
Level 2
Feb 24, 2018 12:18 PM UTC
Solved

dynamic media in aem 6.2 changing the transparent png image background to white

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
AnshuGuAccepted solution
Adobe Employee
May 29, 2018 6:59 AM UTC

Try rendering the image using png-alpha format , like adding &fmt=png-alpha to the url.

4 replies

kautuk_sahni
Level 9
Feb 27, 2018 6:12 AM UTC

Moving this to AEM Assets topic!!

Translate
Kautuk Sahni
AnshuGuAdobe EmployeeAccepted solution
Adobe Employee
May 29, 2018 6:59 AM UTC

Try rendering the image using png-alpha format , like adding &fmt=png-alpha to the url.

Translate
New Member
Jun 13, 2023 2:53 PM UTC

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. 

Translate
Adobe Employee
Jun 13, 2023 3:19 PM UTC

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:

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/wcm-components/v2-components/image.html?lang=en#metadata-tab

Translate