Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 10/20/2015
Components: CFIMAGE
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Few users will encounter
Locale/System: English / Win XP All
Vote Count: 0
The image functions accept "r,g,b" list of three 0-255 integers as a color value. But, imageMakeColorTransparent() doesn't (tho the doc says it does).
Repro:
<cfscript>
myImage = imageNew("", 200, 200, "argb", "0,0,255");//"r,g,b" works
imageSetDrawingColor(myImage, "255,255,0");//"r,g,b" works
imageDrawText(myImage, "CF", 30 ,130, {font="arial", size=100});
myImage = imageMakeColorTransparent(myImage, "255,255,0");//"r,g,b" throws: "The passed color argument is not in the required format. The color attribute recognizes the following colors directly: black, white, gray, mediumgray, darkgray, red, blue, green, pink, orange, magenta, yellow and cyan. You must enter any other color in RGB or hex Format." (BTW, "Format" should be "format" - do I really need to file another ticket for that typo?)
cfimage(action="writeToBrowser", source=myImage);
</cfscript>
Actual result: exception
Expected result: a blue image w/ transparent letters CF
Note: Per 3126141, imageMakeColorTransparent() accepts a list of colors.
This ticket here is to allow a list of 3 integers, each in the range of 0-255, to be treated as an "r,g,b" color value (just like the imageMakeColorTransparent() doc says is supported).
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4077066
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
External Test Config: Verified in CF11 Update 5 (build 11,0,05,293506)
Attachments:
Comments: