As a follow up here is what I have been currently trying but getting and
error.

All the Image info is displayed, but the error comes when writing the image.
After the code is the error.

<cfimage source="http://www.picnik.com/file/3289127720.jpg"; name="myImage">
<cfset info=ImageInfo(myImage)>
<cfdump var="#info#"></cfdump>
<p>height = <cfoutput>#info.height#</cfoutput>
<p>width = <cfoutput>#info.width#</cfoutput>
<p>source = <cfoutput>#info.source#"</cfoutput>
<p>pixel size = <cfoutput>#info.colormodel.pixel_size#</cfoutput>
<p>transparency = <cfoutput>#info.colormodel.transparency#</cfoutput>
<cfimage source="#myImage#" action="write"
destination="#ExpandPath('.')#\MyNewImage.jpg">

****  COLDFUSION ERROR  *****

Exception occured in JPG processing. segment size would extend beyond file
stream length
Exception occured in JPG processing. segment size would extend beyond file
stream length
 
The error occurred in C:\ColdFusion8\wwwroot\CodeTest\cfimage\ImageInfo.cfm:
line 37

35 : <p>pixel size = <cfoutput>#info.colormodel.pixel_size#</cfoutput>
36 : <p>transparency = <cfoutput>#info.colormodel.transparency#</cfoutput>
37 : <cfimage source="#myImage#" action="write"
destination="#ExpandPath('.')#\MyNewImage.jpg">
38 : 
39 : </body>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315334
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to