have you tried writing the file out to the filesystem first with a .png extension?
personally I hate the dependence on filenames for setting file types with the image support in CF, it's really annoying z On Tue, Dec 20, 2011 at 1:53 PM, Steve Onnis <[email protected]> wrote: > Thought i would push this one back out into the ether to see if anyone had > any ideas... > > > > From: Steve Onnis [mailto:[email protected]] > Sent: Tuesday, 20 December 2011 3:46 AM > To: [email protected] > Subject: [cfaussie] Image functions with transparent png images > > > > I am having this issue which i am sure people have had in the past so i am > hoping for some advice as to how to get around it. > > > > I am uploading a transparent png image file with the following process :- > > > > 1. Upload file > > 2. Read file > > 3. Store file in memory as binary > > 4. Delete original file > > 5. Output image to browser > > > > Now if i use the “writetobrowser” action the image displays as its proper > transparency but if i use say <cfcontent type="image/png" > variable="#ToBinary(ToBase64(imageVar))#" /> then the image messes up and > displays with its colors all inverted and no transparency. > > > > Does anyone know how i can get around this? I need the image to display > with its transparency. From what i can see, even if i pass the png content > type in, the browser is seeing it as a JPEG image. > > > > Any suggestions? > > > > Steve > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
