Question
CFIMAGE / ImageResize problems
Definitely there are some issues happening these days on the
HMS servers since our images upload/resize functions stopped
working since Friday.
I tried a lot of ways to fix this but seems to be a server related problem. We setup a test script trying to do this:
1. Upload a JPG file with a size greater than 640 x 480 on the server
2. Create a "thumbnail" of the images (150 x Y) and save it to "thumbs/" folder
3. Create a "big version" of the images (640 x Y) and save it to "images/" folder
4. Delete the original file
It crashes on the 3rd step, and saves only part of the resize JPG file.
http://www.viaromania.eu/upload/index.cfm
The error we are getting is this one:
An exception occured 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 : coldfusion.image.ImageWriter$ImageWritingException: An exception occured while trying to write the image.
Later edit:
- This is acting totally strange... for some JPG files it works fine, for some of them it crashes when trying to write the resized image on the server and for some of them it is crashing when trying to delete the original file from the disk. I just don't get it!
If you want to test it, download this image: http://www.viaromania.eu/upload/PICT0238.jpg
And try the script with it. It should crash on RESIZE.
Next, download this image: http://www.viaromania.eu/upload/_2422339695_237906822d_b.jpg
And try the script with it. It should crash on DELETE original file.
And download this image: http://www.flickr.com/photos/24769044@N08/2422339695/sizes/l/
And it will work fine...
What is going on? Does anyone else experienced the same problems?
NOTE: Images crashing were previously resized using ACDSee Pro software.
I tried a lot of ways to fix this but seems to be a server related problem. We setup a test script trying to do this:
1. Upload a JPG file with a size greater than 640 x 480 on the server
2. Create a "thumbnail" of the images (150 x Y) and save it to "thumbs/" folder
3. Create a "big version" of the images (640 x Y) and save it to "images/" folder
4. Delete the original file
It crashes on the 3rd step, and saves only part of the resize JPG file.
http://www.viaromania.eu/upload/index.cfm
The error we are getting is this one:
An exception occured 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 : coldfusion.image.ImageWriter$ImageWritingException: An exception occured while trying to write the image.
Later edit:
- This is acting totally strange... for some JPG files it works fine, for some of them it crashes when trying to write the resized image on the server and for some of them it is crashing when trying to delete the original file from the disk. I just don't get it!
If you want to test it, download this image: http://www.viaromania.eu/upload/PICT0238.jpg
And try the script with it. It should crash on RESIZE.
Next, download this image: http://www.viaromania.eu/upload/_2422339695_237906822d_b.jpg
And try the script with it. It should crash on DELETE original file.
And download this image: http://www.flickr.com/photos/24769044@N08/2422339695/sizes/l/
And it will work fine...
What is going on? Does anyone else experienced the same problems?
NOTE: Images crashing were previously resized using ACDSee Pro software.
