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,620 reputation)Supreme Being - (1,620 reputation)Supreme Being - (1,620 reputation)Supreme Being - (1,620 reputation)Supreme Being - (1,620 reputation)Supreme Being - (1,620 reputation)Supreme Being - (1,620 reputation)Supreme Being - (1,620 reputation)Supreme Being - (1,620 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 - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 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
RBaker
 Posted Fri 14 Feb 2014
Supreme Being

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

Group: Forum Members
Last Active: Fri 14 Feb 2014
Posts: 2, Visits: 3
Awesome Big Cheese. I uncommented the select statement and all is good now. Thanks!
djjohnson
 Posted Fri 2 May 2014
Supreme Being

Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)

Group: Forum Members
Last Active: Thu 26 Feb 2015
Posts: 45, Visits: 103
Did you ever get .PNG images to show up correctly with transparency? I uncomment the section and did a build and same results.

D.J. Johnson
V.P. Development and Operations
NTS Services Corp
DataBackup.com
djjohnson
 Posted Sat 3 May 2014
Supreme Being

Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)Supreme Being - (25,261 reputation)

Group: Forum Members
Last Active: Thu 26 Feb 2015
Posts: 45, Visits: 103
I just ended up converting the .png's to .jpg's.

D.J. Johnson
V.P. Development and Operations
NTS Services Corp
DataBackup.com
Paul
 Posted Sun 4 May 2014
große Käse

große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)große Käse - (517,368 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
I know we had problems when we tested the code ourselves, which was why we kept it but commented it out. Not sure if the issue is the specific format of PNGs or the server image handling components. Ideally we'd like to switch to PNG as the default format, but the present issues mean JPG is probably safer - though not quite as good.

--
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