How do I get Kartris to render transparent .png files properly???

Posted By RBaker Tue 11 Feb 2014
Add to Favorites1

How do I get Kartris to render transparent .png files properly???

Author Message
RBaker
 Posted Tue 11 Feb 2014
Supreme Being

Supreme Being - (1,608 reputation)Supreme Being - (1,608 reputation)Supreme Being - (1,608 reputation)Supreme Being - (1,608 reputation)Supreme Being - (1,608 reputation)Supreme Being - (1,608 reputation)Supreme Being - (1,608 reputation)Supreme Being - (1,608 reputation)Supreme Being - (1,608 reputation)

Group: Forum Members
Last Active: Fri 14 Feb 2014
Posts: 2, Visits: 3
I am customizing the Kartris front end skin and I am having issues with how the item images are displaying. My item images are .png files with transparent backgrounds. I upload them through Admin and when I view them on the front end they have black backgrounds- no longer transparent. When I view the source I see Image.aspx?strFileName=p1_01.png, but when I right-click and save as, my pc wants to save it as a .jpg file.

Anyone experiencing the same issue AND found a solution?
OR does Kartris just not render transparent .png files?

Image displayed in cart:
http://forum.kartris.com/Uploads/Images/0439705f-0be2-4494-b96a-da33.JPG
Image I uploaded:
http://forum.kartris.com/Uploads/Images/e8192f46-c4b3-4103-bf07-7a75.png
Paul Marked As Answer
 Posted Thu 13 Feb 2014
große Käse

große Käse - (513,472 reputation)große Käse - (513,472 reputation)große Käse - (513,472 reputation)große Käse - (513,472 reputation)große Käse - (513,472 reputation)große Käse - (513,472 reputation)große Käse - (513,472 reputation)große Käse - (513,472 reputation)große Käse - (513,472 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
It is something we have experimented with. If you look near the foot of image.aspx, you can see this code:

            'In theory this lets us output thumbnails
'in the original format, but PNGs don't
'seem to work reliably
'Select Case FInfo.Extension.ToUpper
' Case ".PNG"
' bmpImage.Save(Response.OutputStream, ImageFormat.Png)
' Case ".GIF"
' bmpImage.Save(Response.OutputStream, ImageFormat.Gif)
' Case Else
' bmpImage.Save(Response.OutputStream, ImageFormat.Jpeg)
'End Select


We didn't get it working reliably, but you can experiment with this. The code is open for this reason; there are also various ways to handle images, so it may be possible that rewriting other parts of this file to use alternative image and graphics methods may resolve this.


--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top