Ken,
Just make sure you are catching right from the time you instantiate the
image.cfc object up until the time you write the image and clear the
object.
Ie, Do this:
<cftry>
<CFOBJECT component="Image" name="myImage" />
<cfset myImage = CreateObject('Component', 'Image').setKey('whatever')
/>
<CFSET myImage.readImage("c:\image.gif") />
<CFSET myImage.Rotate(#URL.Angle#) />
<CFSET myImage.writeImage("c:\imageRotated.gif", "gif") />
<cfcatch type="any">
Oops, no image for you!
</cfcatch>
</cftry>
-----Original Message-----
From: Ken [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 4:53 PM
To: CF-Talk
Subject: Exception handling with Alagad Image Component
Hi. This question is for people who have successfully used the Alagad
Image Component. Can anyone tell me how to handle ReadImage and
WriteImage Errors, especially if you installed the JAI libraries, and
are now trying to process a non-conventional image format, like a tif
file?
I tried using cftry and cfcatch, but it somehow escapes the error
catching, and displays the error in the debug in info as such:
Exceptions
16:46:25.025 - javax.imageio.IIOException - in
D:\web\wiw2u\CFC\Images\Image.cfc : line 869
Sample size must be <= 8
Can someone help please.
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244955
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54