Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Image Presets - Removing Background off of an image that has an alpha channel

Avatar

Level 1

Hi, 

I am having trouble configuring an image preset that allows me to modify the background of a TIFF image to become transparent.

This image is stored as a TIFF in Adobe Experience Manager and contains multiple layers to it. The image file has an alpha channel layer that I thought I could manipulate to change but for some reason when I am trying to render it it is not working.

 

I'd like to have two different image presents with the following formats:

1. Format = PNG with Alpha

2. Format = TIFF with Alpha

 

I've tried the color and bgColor modifiers with the default of 0,0,0,0 but the image does not seem to remove the background at all.

I'm a bit new to this thus any type of information would help! 

 

Sample image can be found here:

https://nb.scene7.com/is/image/NB/wt13276sye_nb_70_i

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

hi,

 

If you upload an asset which is transparent then using fmt=png-alpha or fmt=png will give transparent image but if uploaded image is not transparent then using fmt will not give transparent image. 

 

We can remove background while uploading the image and steps can be found in below link under section "Knockout Background" 

 

https://experienceleague.adobe.com/docs/dynamic-media-classic/using/master-files/image-editing-optio...

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

hi,

 

If you upload an asset which is transparent then using fmt=png-alpha or fmt=png will give transparent image but if uploaded image is not transparent then using fmt will not give transparent image. 

 

We can remove background while uploading the image and steps can be found in below link under section "Knockout Background" 

 

https://experienceleague.adobe.com/docs/dynamic-media-classic/using/master-files/image-editing-optio...

Avatar

Community Advisor

Hi @Juansska ,
when saving the Tiff file in Photoshop, there is an extra checkbox to "save transparency".
Unless this checkbox is checked, your file may have no background but still shows up as a file with a background.

AdilosCantuerk_0-1693985209229.png

To see if the file in question has transparency, you can open it in photoshop - use the "save as" command to replace the file and after the replacement warning you see the tiff options.
From your description, it sounds like you have an extra layer for the background? If not, and you have saved the transparency option, you can use the bgc=0,0,0,0  instead of bgColor=0,0,0,0