tracker issue : CF-4077066

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

[ANeff] Bug for: imageMakeColorTransparent() not accepting "r,g,b"

| View in Tracker

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

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
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:

Fixed the issue now imageMakeColorTransparent() accepts the colors in rgb format where rgb values in range 0-255. Thanks, Pavan.
Comment by S V.
5488 | October 27, 2015 01:17:44 AM GMT
The fix will be available in the next release of ColdFusion. Thanks!
Comment by S P.
5489 | October 29, 2015 01:10:37 AM GMT
Verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
5490 | July 29, 2017 06:25:04 PM GMT