Why are my uploaded transparent PNG assets being published to the CDN with a white background?
Solved! Go to Solution.
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
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
Best regards,
Kostiantyn Diachenko.

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.
Views
Replies
Total Likes
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
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
Best regards,
Kostiantyn Diachenko.

Can you please share an example of the asset URL, it might be a dynamic media problem, rather than the CDN itself.
@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!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies