tracker issue : CF-3042897

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

Bug 85250:(Watson Migration Closure)[ANeff] Doc bug for: imageResize/imageScaleToFit "blurFactor" descriptionCurrently, the "blurFactor" description, for imageResize and imageScaleToFit, is: "Optional

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 11/30/2010

Components: Documentation, General

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Minor / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

[ANeff] Doc bug for: imageResize/imageScaleToFit "blurFactor" descriptionCurrently, the "blurFactor" description, for imageResize and imageScaleToFit, is: "Optional. The blur factor used for resampling. The higher the blur factor, the more blurred the image (also, the longer it takes to resize the image). Valid values are 1–10."The bug is in this portion: "Valid values are 1–10".To see the correct value range, simply pass "0" as the blurFactor. CF will throw an exception containing the following message:"It must be greater than 0 and less than 10.For sharp, 0 < blur <= 1For blur, 1 < blur <= 10"So, the "Valid values are 1–10" portion, of the "blurFactor" description, should probably be changed to "Valid values are 0.01–10".I'll file a separate bug for this: "It must be greater than 0 and less than 10", in the exception message, should be changed to "It must be greater than 0 and less, or equal to, 10".I'll file a separate ER for this: Actually, "Valid values are 0–10" should be valid, where "0" indicates no blur. There is no reason to throw an error, when the 4th parameter to imageResize/imageScaleToFit is 0. Because, when the 4th parameter is omitted, then no error is thrown. Omitting the 4th parameter, and passing 0 for 4th parameter, should return same result.
Method:


Result:

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

Watson Bug ID:	3042897

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email: 3D1D17B03C844EBF992001AC
External Test Config: 11/30/2010

Attachments:

Comments:

Aaron, Both are updated at: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-h-im/imageresize.html https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-h-im/imagescaletofit.html
Comment by External U.
21295 | July 05, 2016 03:30:17 AM GMT
Hi Saurav, Awesome, confirmed. Thanks very much! Note: CF-3042899 should be re-opened. The default BlurFactor is 0. Thus, 0 should also be allowed. User may want to conditionally blur, or not blur. Please see comment I added on CF-3042899. Thanks!, -Aaron
Comment by External U.
21296 | July 05, 2016 01:11:22 PM GMT
You're welcome Aaron! We'll revisit CF-3042899.
Comment by External U.
21297 | July 06, 2016 12:39:18 AM GMT