Expand my Community achievements bar.

SOLVED

Looking for transparent PNG support in AEM

Avatar

Level 2

Why are my uploaded transparent PNG assets being published to the CDN with a white background?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Sverdoor ,

 

I know that such problem happens when you use Dynamic Media. Any transparent images (PNG) become not transparent in WEBP or JPEG format.

 

There are 2 options how to get image with transparent background:

1) If you use Image component: configure "Image Modifiers" in the Image component: fmt=png-alpha&bfc=on

https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/i... 

2) If you use asset URL: add fmt=png-alpha&bfc=on request parameters

 

To make it global, I would suggest to configure Image Preset.

- Leave Height and Width empty to enabled responsiveness feature

- Format: PNG with Alpha

Details: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/dynamicme...

 

Best regards,

Kostiantyn Diachenko.

Kostiantyn Diachenko



Check out AEM VLT Intellij plugin


View solution in original post

5 Replies

Avatar

Level 5

Avatar

Level 2

Does this function need DEV access? I'm not a developer. Also note that we're using AEM Assets Cloud version. I'm sort of confused as to why this is not an out of the box feature. If a PNG includes transparency, it should just be displayed that way in the CDN. 

Avatar

Correct answer by
Community Advisor

Hi @Sverdoor ,

 

I know that such problem happens when you use Dynamic Media. Any transparent images (PNG) become not transparent in WEBP or JPEG format.

 

There are 2 options how to get image with transparent background:

1) If you use Image component: configure "Image Modifiers" in the Image component: fmt=png-alpha&bfc=on

https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/i... 

2) If you use asset URL: add fmt=png-alpha&bfc=on request parameters

 

To make it global, I would suggest to configure Image Preset.

- Leave Height and Width empty to enabled responsiveness feature

- Format: PNG with Alpha

Details: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/dynamicme...

 

Best regards,

Kostiantyn Diachenko.

Kostiantyn Diachenko



Check out AEM VLT Intellij plugin


Avatar

Community Advisor and Adobe Champion

Can you please share an example of the asset URL, it might be a dynamic media problem, rather than the CDN itself.

Avatar

Administrator

@Sverdoor Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni