tracker issue : CF-3929327

select a category, or use search below
(searches all categories and all time range)

cfimage creates problems with the images with the extension .PNG on Localhost

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Oleksandr Antonenko / Oleksandr Antonenko (Oleksandr Antonenko)

Created: 01/28/2015

Components: CFIMAGE

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Windows 8.1/64bit

Vote Count: 12

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on July 29, 2017 using build 2016.0.01.298513
Problem Description:
Important for me to work on the site locally and I work with images on our site with format .jpg and .png
I do not have problem with format .jpg, but i have problem with .png, when I use cfimage

THIS MY CODE with comment:

<cffile action="upload" destination="#request.siteLocalDir#img\portfolio" filefield="iphoto" nameconflict="makeunique">
<cfset Variables.newFile = "#CFFile.ServerFile#">
    <!--- If image with extension .png then rewrite to .jpg --->
    <cfif cffile.serverFileExt EQ "png">
      <cfimage action="convert" source="#request.siteLocalDir#img\portfolio\#Variables.newFile#" destination="#request.siteLocalDir#img\portfolio\#Replace(Variables.newFile, 'png', 'jpg')#" overwrite="yes">
      <cfset Variables.newFile = Replace(Variables.newFile, 'png', 'jpg')>
      <!--- Now delete unnecessary file .png   --->
      <CFFILE action="DELETE" file="#request.siteLocalDir#img\portfolio\#CFFile.ServerFile#">  
      <!--- AND THIS PLACE START PROBLEM - only locally on Localhost - ERROR --->

File .PNG do not deleted, because ERROR
Here is the error message:
ColdFusion could not delete the file D:\ColdFusion11\cfusion\wwwroot\ant4web\test\609\img\portfolio\b\ for an unknown reason. 
Type 	coldfusion.runtime.CfErrorWrapper  

I can not even delete the file (PNG) manually, but I can after restart  ColdFusion server

This problem I have about 2 year
ColdFusion 9 also had this problem.
I have used several different of computers and Windows 7 and Windows 8.1
Nothing helped

Now write HERE
Give me an answer

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3929327

External Customer Info:
External Company:  
External Customer Name: Oleksandr
External Customer Email:  
External Test Config: My Hardware and Environment details:



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.
8669 | January 28, 2015 09:39:16 AM 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.
8670 | January 31, 2015 07:29:15 AM GMT
+1 - Basically, CF doesn't close a .png after reading it. Whereas, CF does close a .jpg after reading it.
Vote by External U.
8691 | January 31, 2015 07:29:47 AM GMT
As mentioned in note, reproduced on my platform as well. This comment is for the +1.
Vote by External U.
8692 | February 02, 2015 07:34:54 AM GMT
+1 - have had this issue occaisionally!
Vote by External U.
8693 | April 30, 2015 04:17:52 AM 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
Vote by External U.
8694 | May 28, 2015 03:11:15 PM 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.
8671 | July 29, 2015 10:51:14 AM GMT
+1 please fix soon, thanks.
Vote by External U.
8695 | July 29, 2015 10:52:04 AM GMT
We are having the same issue with .tif files.
Comment by External U.
8672 | August 04, 2015 06:56:08 AM GMT
We are having the same issue with .TIFF images.
Vote by External U.
8696 | August 04, 2015 06:56:41 AM GMT
Having the same problem at my company after upgrading to CF11
Vote by External U.
8697 | August 06, 2015 02:11:49 PM GMT
+1 This issue is causing quite a problem for me. Hope it gets fixed soon.
Vote by External U.
8698 | August 21, 2015 11:34:21 AM GMT
+1 Affecting us also, hoping it can be fixed soon, can't update until this works
Vote by External U.
8699 | September 15, 2015 11:54:17 AM GMT
The issue is fixed and will be available in the next ColdFusion version. Thanks!
Comment by S P.
8673 | September 21, 2015 08:15:00 AM 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.
8674 | September 21, 2015 09:29:33 AM GMT
Hi Aaron, The fix works for '.tif' images as well, the image gets deleted without any exceptions. Thanks, Preethi
Comment by S P.
8675 | September 22, 2015 02:14:26 AM GMT
Hi Preethi, Awesome! Thanks for clarifying! -Aaron
Comment by External U.
8676 | September 22, 2015 02:22:43 AM 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.
8677 | October 15, 2015 07:43:03 AM 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.
8678 | November 18, 2015 09:06:02 AM 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?
Vote by External U.
8700 | November 18, 2015 09:08:56 AM GMT
The fix for this will be available in the next ColdFusion Update. Thanks!
Comment by S P.
8679 | November 22, 2015 12:19:33 AM GMT
Hi Preethi, Fixed only in CF12? Or also in a future CF11 update? Thanks!, -Aaron
Comment by External U.
8680 | January 04, 2016 06:19:18 PM 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.
8681 | January 14, 2016 10:44:01 AM 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.
8682 | January 14, 2016 04:16:57 PM 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
Vote by External U.
8701 | January 16, 2016 09:50:02 AM 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.
8683 | January 18, 2016 06:04:22 AM 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.
8684 | February 26, 2016 01:55:39 PM 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 Thanks!, -Aaron
Comment by External U.
8685 | February 26, 2016 02:01:57 PM GMT
Yes Aaron. You can contact for the patch which fixes this issue. Thanks, Pavan.
Comment by S V.
8686 | February 29, 2016 04:03:37 AM 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.
8687 | March 11, 2016 02:14:22 PM 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.
8688 | March 24, 2016 08:08:20 AM GMT
Please release the fix for this. It's really frustrating.
Vote by External U.
8702 | March 24, 2016 08:09:04 AM GMT
Hi Matthew, The fix would be available in the update 8 of ColdFusion 11. Thanks!
Comment by S P.
8689 | March 28, 2016 02:48:11 AM GMT
Verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Verified it is also fixed in CF11 Update 7 (build 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.
8690 | July 29, 2017 06:40:58 PM GMT