cfimage and .tif
I'm reading a scanned TIF images from a network drive, converting it to png then manipulating it adding a "watermark" then pushing it to the browser. For some images, it works but for others, I get an I/O error.
An exception occurred while trying to read the image. | |
I/O error reading image metadata! | |
Here is my code
<cfimage action="read" name="invoiceImg" source="#img#" >
<cfimage action="convert" destination="e:\inetpub\wwwroot\CFShared\CFTemp\epay-pel/img.png" source="#invoiceImg#" overwrite="true" >
<cfimage action="read" name="invoiceImg" source="e:\inetpub\wwwroot\CFShared\CFTemp\epay-pel/img.png" >
<cfset ImageResize(invoiceImg,"850","","blackman",2)>
<cfset attr=StructNew()>
<cfset attr.size = 58>
<cfset attr.style = "bolditalic">
<cfset attr.font = 'Arial Bold' />
<cfset ImageSetDrawingColor(invoiceImg,"red")>
<cfset ImageSetDrawingTransparency(invoiceImg,40)>
<cfset ImageDrawText(invoiceImg, "GR Not Completed",175,200,attr)>
<cfset ImageDrawText(invoiceImg, "ff-GR Not Completed",145,250,attr)>
<cfset ImageAddBorder(invoiceImg,2,"black")>
<cfimage action="writeToBrowser" source="#invoiceImg#" format="jpg">
<cffile action="delete" file="#expandpath('/lib_temp')#\epay-pel/img.png">
Any Help would be great.
Product Version 9,0,1,274733 Enterprise.
