I've got an application for a photo gallery that's using CFIMAGE to check the size of the original image input and if it's over the size the client has been instructed to use, resize it to the specifed size, plus create thumbnails.
The app is working like a champ for me, but I've got a suspision that teh client is tossing *huge* images into the gallery despite stern instructions to size them properly first. So, every so often, they're getting an error: ----------------------------------- An exception occurred while trying to write the image. Ensure that the destination directory exists and that Coldfusion has permission to write to the given path or file. cause : C:\inetpub\wwwroot\mySITE\PHTG_GALLERIES\myIMSGE.jpg (The system cannot find the file specified) ----------------------------------- Which looks like your standard permissions error, right? Is anybody aware of issues with CFIMGE when resizing large images? Is it possible that if they're putting in a large image the write process isn't "letting go" before they've tried to put the next image in and generating the error at that point? Suggestions? My code below: <!---get the image and upload it to the server---> <cffile action="upload" destination="C:\inetpub\mySITE\PHTG_GALLERIES\" filefield="imgFILE" nameconflict="makeunique" > <cfset req.galIMG ="#trim(cffile.serverfile)#"> <!--- check to see if this image is more tha 245 pixels tall - if it is, size it down! ---> <cfimage action = "info" source = "C:\inetpub\mySITE\PHTG_GALLERIES\#req.galIMG#" structname = "imgINFO" > <cfif imgINFO.height GT 245 > <cfimage source="C:\inetpub\mySITE\PHTG_GALLERIES\#req.galIMG#" action="resize" height="245" width="" overwrite="yes" destination="C:\inetpub\mySITE\PHTG_GALLERIES\#req.galIMG#" > </cfif> <!---resize this same image for thumbnails and place in the appropriate folder---> <cfimage source="C:\inetpub\mySITE\PHTG_GALLERIES\#req.galIMG#" action="resize" height="38" width="" destination="C:\inetpub\mySITE\news\PHTG_GALLERIES\thumbs\#req.galIMG#" > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:318756 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

