Lucee object methods reference

Object Method Image.sharpen

Enhances image clarity by applying an unsharp mask filter.
This technique works by:
1. Creating a blurred copy of the original image
2. Finding edges by comparing differences
3. Enhancing edge contrast where differences are found
*Note:* Despite the name "unsharp mask", this process actually increases sharpness.
Image.sharpen([number gain]):void

Category

image

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
gain number  No 1 Controls the intensity of the sharpening effect:
  • **Positive values**: Increase sharpness
  • **Zero** (= 0): No effect
  • **Negative values**: Create blur effect
    *Typical range:* -10.0 to 10.0
    *Default value:* 1.0
    *Recommended:* Start with small values (0.5 - 2.0) for best results