Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » GetImage not removing white background ( DW 9.7.2 )

GetImage not removing white background ( DW 9.7.2 )

Fabio Monte
Reply

Hello

I was fixing an issue we were having with png logos being rendered with white background in emails, so we tried to correct it by setting the "Background" parameter in the respective helper but to no avail.

Looking at the url for the image without using the GetImage method, it renders the image as it should be. Screenshots below shows the diferences between using the method or not.

Can you check if this might be a bug in the GetImage? Or is there something else we should do?

GetImage.PNG WithoutGetImage.PNG

Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Fabio

Yes, we have seen that issue before. It is a bug in ImageGlue that is used in 9.7

Dynamicweb 9.7 uses ImageGlue v. 7.5.0.1, while Dynamicweb 9.6 uses ImageGlue v. 7.3.0.2

It is related to 8 bit PNGs with transparency. You can try saving the logo in 32 bit instead.

We will upgrade image glue when we have a fix for it.

Sorry for the inconvenience.

BR Nicolai

Votes for this answer: 1
 
Fabio Monte
Reply

Hi Nicolai

Thank you for your answer

I tried to save the png in 32 bit but the results are the same.

Do you know when this will be fixed?

 
Fabio Monte
Reply

Hi Nicolai

The 32 bit png file worked afteral. The previous image was still being cached by the GetImage, so we changed the filename and it works well now.

Thanks

 

You must be logged in to post in the forum