Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

Problem with CFimage / PNG images

$
0
0

I have a problem saving PNG images from another server, for example itunes, some work, some don't

 

The following image will open fine in my browser ->

http://a576.phobos.apple.com/us/r30/Purple/v4/de/60/bb/de60bb7f-8995-4007-cfec-1b0a472fa36 7/icon.png

 

This is the error I am receiving:

 

An exception occurred while trying to read the image.

javax.imageio.IIOException: Error reading PNG metadata

 

Code:

<cfimage source="http://a576.phobos.apple.com/us/r30/Purple/v4/de/60/bb/de60bb7f-8995-4007-cfec-1b0a472fa36 7/icon.png" overwrite="true"  destination="#filepath#/9999.png"

    action = "write">

 

I believe some images have malformed/incorrect headers. I'm guessing this is a CF issue (I use CF8), because it loads fine in a browser.

 

Anybody have a solution to this? Maybe an alternative way to retrieve the image? Custom tag?

 

Thanks

 

Mark


Viewing all articles
Browse latest Browse all 6243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>