Lucee Function Reference

imagenegative()

Creates a negative version of the image by inverting all pixel values. Each color channel value is subtracted from 255, resulting in opposite colors (e.g., white becomes black, red becomes cyan).

Example

imagenegative(any image):void

Category

image

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
image any  Yes The image object, binary object, base64 string, or file path to be inverted. The image will be modified in place.