CF-3929327
Title
cfimage creates problems with the images with the extension .PNG on Localhost
Description
Confirmed. The same issue is happening for me in one of our client applications. Windows Server 2008 R2 x64, CF11 with update 3. .jpg images work just fine, .png images will fail as Oleksandr has mentioned.
Comment by External U.
01/28/2015 09:39:16 GMT
Basically, CF doesn't close a .png after reading it. Whereas, CF does close a .jpg after reading it. I was able to reproduce the issue using these steps: 1) Run the following, to create a .jpg and a .png: <cfscript> myImage = imageNew("", 400, 400, "rgb", "blue"); imageWrite(myImage, expandPath('./myimage.jpg')); imageWrite(myImage, expandPath('./myimage.png')); </cfscript> 2) Run the following to read and delete the .jpg: <cfscript> myImage = imageRead(expandPath('./myimage.jpg')); fileDelete(expandPath('./myimage.jpg')); </cfscript> 3) See myimage.jpg is deleted (good) 4) Run the following to read and delete the .png <cfscript> myImage = imageRead(expandPath('./myimage.png')); fileDelete(expandPath('./myimage.png')); </cfscript> 5) See exception: "ColdFusion could not delete the file C:\path\to\myimage.png for an unknown reason." (bug) Verified on CF11 Update 3. Thanks!, -Aaron
Comment by External U.
01/31/2015 07:29:15 GMT
+1 same issue here. Have found that if I write over the image using [cffile action="write" output="nothing"], I can delete the file after a few minutes but definitely not a viable workaround.
Comment by External U.
07/29/2015 10:51:14 GMT
We are having the same issue with .tif files.
Comment by External U.
08/04/2015 06:56:08 GMT
The issue is fixed and will be available in the next ColdFusion version. Thanks!
Comment by S P.
09/21/2015 08:15:00 GMT
Hi Preethi, Was this also fixed for .tiff files? Please see Tom Hubbard's comment on 5:26:08 AM GMT+00:00 Aug 4, 2015. Thanks!, -Aaron
Comment by External U.
09/21/2015 09:29:33 GMT
Hi Aaron, The fix works for '.tif' images as well, the image gets deleted without any exceptions. Thanks, Preethi
Comment by S P.
09/22/2015 02:14:26 GMT
Hi Preethi, Awesome! Thanks for clarifying! -Aaron
Comment by External U.
09/22/2015 02:22:43 GMT
Hi Preethi, What does "the next ColdFusion version" mean? Will it be come in a minor upgrade or will we have to wait for version 12? Thanks, Tom
Comment by External U.
10/15/2015 07:43:03 GMT
Just updated to ColdFusion 11 Update 7, which came out yesterday and I can confirm this bug still exists. This also occurs for .gif's in addition to .png and .tif images. Preethi, can you or anyone else clarify when/where this will be corrected? This is a pretty significant bug. Not gonna lie, was _really_ bummed to not see this in yesterdays patch.
Comment by External U.
11/18/2015 09:06:02 GMT
The fix for this will be available in the next ColdFusion Update. Thanks!
Comment by S P.
11/22/2015 00:19:33 GMT
Hi Preethi, Fixed only in CF12? Or also in a future CF11 update? Thanks!, -Aaron
Comment by External U.
01/04/2016 18:19:18 GMT
According to conversation on the Adobe Slack channel, this bug won't be fixed until CF12. Apparently people with CF11 don't need to use .png graphics
Comment by External U.
01/14/2016 10:44:01 GMT
Hi Preethi, When you said "the next ColdFusion Update", did you mean the next "CF11" Updater? CF11 is very much a supported version and should be treated as such; especially w/ this ticket having 10 votes. Something simple like this should not fail for .gif/.png.tif: <cfscript> myImage = imageRead(expandPath('./myimage.png')); fileDelete(expandPath('./myimage.png')); </cfscript> exception: "ColdFusion could not delete the file C:\path\to\myimage.png for an unknown reason." Thanks!, -Aaron
Comment by External U.
01/14/2016 16:16:57 GMT
Hi, The fix is for both CF12 and CF11. For CF11 it will be available in the next update that will be out. Thanks, Preethi
Comment by S P.
01/18/2016 06:04:22 GMT
I've verified this is fixed in CF2016 (build 2016.0.0.297996). Now just waiting for CF11's Update 8. For verification, I used this: <cfscript> myImage = imageNew("", 400, 400, "rgb", "blue"); imageWrite(myImage, expandPath('./myimage.jpg')); imageWrite(myImage, expandPath('./myimage.png')); imageWrite(myImage, expandPath('./myimage.tif')); imageWrite(myImage, expandPath('./myimage.gif')); myImage = imageRead(expandPath('./myimage.jpg')); fileDelete(expandPath('./myimage.jpg')); myImage = imageRead(expandPath('./myimage.png')); fileDelete(expandPath('./myimage.png')); myImage = imageRead(expandPath('./myimage.tif')); fileDelete(expandPath('./myimage.tif')); myImage = imageRead(expandPath('./myimage.gif')); fileDelete(expandPath('./myimage.gif')); </cfscript> Actual and expected result: All 4 files created and deleted with no error (good) Thanks!, -Aaron
Comment by External U.
02/26/2016 13:55:39 GMT
Hi Adobe, Since CF11 Update 8 is not available yet, is there a patch for this issue which CF11 users can request by contacting cf.install@adobe.com? Thanks!, -Aaron
Comment by External U.
02/26/2016 14:01:57 GMT
Yes Aaron. You can contact cf.install@adobe.com for the patch which fixes this issue. Thanks, Pavan.
Comment by S V.
02/29/2016 04:03:37 GMT
Hi Pavan, Thanks very much! I've confirmed the CF11 patch hf1100-CF-3929327.jar fixes the issue. Thanks again!, -Aaron
Comment by External U.
03/11/2016 14:14:22 GMT
We just updated to ColdFusion 11 and this is the second bug we've encountered, in a single day, that is allegedly fixed, but the update hasn't been released yet. Please, release update 8 with the fixes.
Comment by External U.
03/24/2016 08:08:20 GMT
Hi Matthew, The fix would be available in the update 8 of ColdFusion 11. Thanks!
Comment by S P.
03/28/2016 02:48:11 GMT
Verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Verified it is also fixed in CF11 Update 7 (build 11.0.07.296330). Hi Preethi, in your previous comment you said "The fix would be available in the update 8 of ColdFusion 11." I think you meant CF11 Update 7? It works in that update. Thanks!, -Aaron
Comment by Aaron N.
07/29/2017 18:40:58 GMT
Status:
Closed
Details
Date Created:
01/28/2015
Component:
CFIMAGE
Version:
Beta
Failure Type
Non Functioning
Found In Build:
CF11_Final
Fixed In Build:
Priority:
Major
Frequency:
Most users will encounter
System:
Browser:
Resolution
Fixed
Reason Code:
Votes:
12
Vote Comments:
+1 - Basically, CF doesn't close a .png after reading it. Whereas, CF does close a .jpg after reading it.
Comment by External U.
01/31/2015 07:29:47 GMT
As mentioned in note, reproduced on my platform as well. This comment is for the +1.
Comment by External U.
02/02/2015 07:34:54 GMT
+1 - have had this issue occaisionally!
Comment by External U.
04/30/2015 04:17:52 GMT
cannot delete png with cffile or filedelete() after processing. Will cause my temp folder to fill up with images. The probem does not happen with jpg files in the same script
Comment by External U.
05/28/2015 15:11:15 GMT
+1 please fix soon, thanks.
Comment by External U.
07/29/2015 10:52:04 GMT
We are having the same issue with .TIFF images.
Comment by External U.
08/04/2015 06:56:41 GMT
Having the same problem at my company after upgrading to CF11
Comment by External U.
08/06/2015 14:11:49 GMT
+1 This issue is causing quite a problem for me. Hope it gets fixed soon.
Comment by External U.
08/21/2015 11:34:21 GMT
+1 Affecting us also, hoping it can be fixed soon, can't update until this works
Comment by External U.
09/15/2015 11:54:17 GMT
This still is preset in ColdFusion 11 Update 7, which dropped yesterday without this fix so it seems. Super disappointing. Can someone clarify when this will get hot fixed?
Comment by External U.
11/18/2015 09:08:56 GMT
We are still encountering this issue - January 16, 2016. I see this status is closed, so is there a fix available now? If so please let me know which version to use. We are trying to migrate our platform with hundreds of websites on it to our new server with Coldfusin 11 and find that our users can no longer use it to add .png or .gif images to their websites. This is a large issue for our clientele who use our platform to maintain their own websites. Thank you, Kristi
Comment by External U.
01/16/2016 09:50:02 GMT
Please release the fix for this. It's really frustrating.
Comment by External U.
03/24/2016 08:09:04 GMT