Lucee Function Reference

imageflip()

Transforms an image by flipping or rotating it along specified axes. This operation modifies the original image in place.

Example

imageflip(any image,[string transpose]):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
image any  Yes   The image object, binary object, base64 string, or file path to be transformed. The image will be modified in place.  
transpose string  No vertical The type of transformation to apply:
  • vertical: Mirrors the image top-to-bottom (default)
  • horizontal: Mirrors the image left-to-right
  • diagonal: Flips across top-left to bottom-right diagonal with rotation
  • antidiagonal: Flips across top-right to bottom-left diagonal with rotation
  • 90: Rotates clockwise by 90 degrees
  • 180: Rotates by 180 degrees
  • 270: Rotates clockwise by 270 degrees (same as -90)