Developer forum

Forum » CMS - Standard features » GetImage renders background

GetImage renders background

Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

Looks like the GetImage renders a background regardless of the fillcanvas parameter.

White background:

http://industrilas.softgear.se/Admin/Public/GetImage.ashx?Image=/Files/Images/PIM/ProductImages/Chapter-2/2-510/2-510.png&Format=jpg&Width=200&Height=150&Crop=0

Clean image:

http://industrilas.softgear.se/Files/Images/PIM/ProductImages/Chapter-2/2-510/2-510.png

Bug or am I missing something?

Regards / Aki

 

 


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Aki,

Thats because you are using Format=jpg. If you want to preserve transparency then you can use Format=png instead.

Best regards,
Morten

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

I see that the image is an 8-bit png. I'm not sure that our image converter can handle transparency for 8-bit png images.
Try to change the image to 24-bit png instead.

Best regards,
Morten

Votes for this answer: 1

 

You must be logged in to post in the forum