Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfimage resize problem 1

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
US
When I upload an img, say 2.3mb, the resize is causing an error.
I am using

Code:
<cfimage action = "resize"
height = "#imageScaleValue#"
source = "#REQUEST.img#"
width = "#imageScaleValue#"
destination = "#destFile#"
overwrite = "true" />

The application first uploads the file and then does the resizing. The error is :
An exception occurred while trying to read the image.
File \\blah\myIMG.JPG does not exist.


Actually, it does exist. The funny thing is if i resize the same img to like 640kb, i don't have this problem. Any clue what goes here?
thanks

 
Did you try adding a <cftry><cfcatch> around the <cfimage> to see what happens? I don't use <cfimage> (I use image.cfc), but doesn't <cfimage> resize the image on the fly as opposed to upload original image, resize, delete original image? if so, perhaps the image size is so large it causes this error.

_____________________________
Just Imagine.
 
thanks, but Open the ColdFusion Administrator and select the System Information page

I don't see a system information page in the admin. Do you know where this might be?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top