Functions
- GetReadableImageFormats() Returns a list of image formats that Lucee can read on the operating system where Lucee is deployed.
- GetWriteableImageFormats() Returns a list of image formats that Lucee can write on the operating system where Lucee is deployed.
- ImageAddBorder() Adds a rectangular border around the outside edge of an image. The border can be a solid color or generated using various edge extension methods. The original image remains centered while the border increases the image dimensions.
- ImageBlur() Applies a box blur filter to smooth an image by averaging pixel values within a square region. Useful for reducing image noise or creating soft focus effects.
- ImageCaptcha() Creates a captcha image
- ImageClearRect() Clears the specified rectangle by filling it with the background color of the current drawing surface.
- imagecoderinfo() Gives detailed information about all coder used by the image extension.
- ImageCopy() Creates a new image by copying a rectangular area from the source image. If destination coordinates are provided, the copied area is also drawn at the new location in the resulting image.
- ImageCrop() Crops an image to a specified rectangular area. The function modifies the original image by extracting the defined region. If the specified crop area extends beyond the image boundaries, the function automatically adjusts to fit within the image dimensions.
- ImageDrawArc() Draws a circular or elliptical arc.
- ImageDrawBeveledRect() Draws a rectangle with beveled edges.
- ImageDrawCubicCurve() Draws a cubic curve.
- ImageDrawImage() this function is deprecated, use ImagePaste instead. Draws a image on a image with the baseline of the first character positioned at (x,y) in the image.
- ImageDrawLine() Draws a single line defined by two sets of x and y coordinates on a image.
- ImageDrawLines() Draws a sequence of connected lines defined by arrays of x and y coordinates.
- ImageDrawOval() Draws an oval.
- ImageDrawPoint() Draws a point at the specified (x,y) coordinate.
- ImageDrawQuadraticCurve() Draws a curved line. The curve is controlled by a single point.
- ImageDrawRect() Draws a rectangle.
- ImageDrawRoundRect() Draws a rectangle with rounded corners.
- ImageDrawText() Draws a text string on a image with the baseline of the first character positioned at (x,y) in the image.
- ImageFilter() the function ImageFilter allows to execute a filter against a image.
- ImageFilterColorMap() These are passed to the function ImageFilters (see ImageFilter documentation) which convert gray values to colors.
- ImageFilterCurves() the curves for the wrap grid
- ImageFilterKernel() These are passed to the function ImageFilters
- ImageFilterWarpGrid() A warp grid. These are passed to the function ImageFilters (see ImageFilter documentation).
- ImageFlip() Transforms an image by flipping or rotating it along specified axes. This operation modifies the original image in place.
- ImageFonts() return all available
- ImageFormats() return all available readers and writers
- ImageGetBlob() Retrieves the bytes of the underlying image. The bytes are in the same image format as the source image.
- ImageGetBufferedImage() Returns the java.awt.BufferedImage object underlying the current image.
- ImageGetEXIFMetadata() Retrieves the Exchangeable Image File Format (EXIF) headers in an image as a CFML structure.
- ImageGetEXIFTag() Retrieves the specified EXIF tag in an image.
- ImageGetHeight() Retrieves the height of the image in pixels.
- ImageGetIptcMetadata() Retrieves the International Press Telecommunications Council (IPTC )headers in a image as a struct. The IPTC metadata contains text that describes the image that is stored with it. IPTC metadata includes, but is not limited to, caption, keywords, credit, copyright, object name, created date, byline, headline, and source
- ImageGetWidth() Retrieves the width of the specified image.
- ImageGrayscale() Converts a image to grayscale.
- ImageInfo() Returns a structure containing image information. When called with an image argument, returns details about the specific image including height, width, color model, size, and filename. When called without arguments, returns information about the Lucee image processing extension including its OSGi bundle version and status
- 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).
- ImageNew() Creates a image.
- ImageOverlay() Combines two images by overlaying one on top of the other using alpha compositing. The second image is blended with the first based on its transparency.
- ImagePaste() Composites one image onto another at specified coordinates. The second image is overlaid on top of the first image, preserving transparency and using high-quality interpolation.
- ImageRead() Reads the source pathname or URL and creates a image.
- ImageReadBase64() Creates a image from a Base64 string.
- ImageResize() Resizes a image.
- ImageRotate() Rotates a image at a specified point by a specified angle.
- ImageRotateDrawingAxis() Rotates all subsequent drawing on a image at a specified point by a specified angle.
- ImageScaleToFit() Creates a resized image with the aspect ratio maintained.
- ImageSetAntialiasing() Switches antialiasing on or off in rendered graphics.
- ImageSetBackgroundColor() Sets the background color for the image. The background color is used for clearing a region. Setting the background color only affects the subsequent ImageClearRect calls
- ImageSetDrawingAlpha() Sets the current drawing alpha for images. All subsequent graphics operations use the specified alpha.
- ImageSetDrawingColor() Sets the current drawing color for images. All subsequent graphics operations use the specified color.
- ImageSetDrawingStroke() Sets the drawing stroke for points and lines in subsequent images.
- ImageSetDrawingTransparency() Specifies the degree of transparency of drawing functions.
- ImageSharpen() 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.
- ImageShear() Transforms an image by shearing it along one axis, creating a slanted or skewed effect. Positive values slant in one direction, negative values in the opposite direction.
- ImageShearDrawingAxis() Shears the drawing canvas.
- ImageTranslate() Moves an image to a new position by specified x and y offsets. The original image content is cleared and redrawn at the new location.
- ImageTranslateDrawingAxis() Translates the origin of the image context to the point (x,y) in the current coordinate system.
- ImageWrite() Writes a image to the specified filename or destination.
- ImageWriteBase64() Writes Base64 images to the specified filename and destination.
- ImageWriteToBrowser() Writes image to browser.
- ImageXORDrawingMode() Sets the paint mode of the image to alternate between the image's current color and the new specified color.
- IsImage() Determines whether a variable returns a image.
- IsImageFile() Verifies whether an image file is valid.
Tags
- <cfimage> Lets you resize and add labels to GIF and JPEG format images.
Methods
- image.addBorder() Adds a rectangular border around the outside edge of an image. The border can be a solid color or generated using various edge extension methods. The original image remains centered while the border increases the image dimensions.
- image.blur() Applies a box blur filter to smooth an image by averaging pixel values within a square region. Useful for reducing image noise or creating soft focus effects.
- image.clearRect() Clears the specified rectangle by filling it with the background color of the current drawing surface.
- image.coderInfo() Gives detailed information about all coder used by the image extension.
- image.copy() Creates a new image by copying a rectangular area from the source image. If destination coordinates are provided, the copied area is also drawn at the new location in the resulting image.
- image.crop() Crops an image to a specified rectangular area. The function modifies the original image by extracting the defined region. If the specified crop area extends beyond the image boundaries, the function automatically adjusts to fit within the image dimensions.
- image.drawArc() Draws a circular or elliptical arc.
- image.drawBeveledRect() Draws a rectangle with beveled edges.
- image.drawCubicCurve() Draws a cubic curve.
- image.drawDrawLines() Draws a sequence of connected lines defined by arrays of x and y coordinates.
- image.drawImage() this function is deprecated, use ImagePaste instead. Draws a image on a image with the baseline of the first character positioned at (x,y) in the image.
- image.drawLine() Draws a single line defined by two sets of x and y coordinates on a image.
- image.drawOval() Draws an oval.
- image.drawPoint() Draws a point at the specified (x,y) coordinate.
- image.drawQuadraticCurve() Draws a curved line. The curve is controlled by a single point.
- image.drawRect() Draws a rectangle.
- image.drawRoundRect() Draws a rectangle with rounded corners.
- image.drawText() Draws a text string on a image with the baseline of the first character positioned at (x,y) in the image.
- image.filter() Executes a filter on the given image
- image.filterColorMap() These are passed to the function ImageFilters (see ImageFilter documentation) which convert gray values to colors.
- image.flip() Transforms an image by flipping or rotating it along specified axes. This operation modifies the original image in place.
- image.getBlob() Retrieves the bytes of the underlying image. The bytes are in the same image format as the source image.
- image.getBufferedImage() Returns the java.awt.BufferedImage object underlying the current image.
- image.getEXIFMetadata() Retrieves the Exchangeable Image File Format (EXIF) headers in an image as a CFML structure.
- image.getEXIFTag() Retrieves the specified EXIF tag in an image.
- image.getHeight() Retrieves the height of the image in pixels.
- image.getIptcMetadata() Retrieves the International Press Telecommunications Council (IPTC )headers in a image as a struct. The IPTC metadata contains text that describes the image that is stored with it. IPTC metadata includes, but is not limited to, caption, keywords, credit, copyright, object name, created date, byline, headline, and source
- image.getWidth() Retrieves the width of the specified image.
- image.grayscale() Converts a image to grayscale.
- image.info() Returns a structure containing image information. When called with an image argument, returns details about the specific image including height, width, color model, size, and filename. When called without arguments, returns information about the Lucee image processing extension including its OSGi bundle version and status
- image.negative() 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).
- image.overlay() Combines two images by overlaying one on top of the other using alpha compositing. The second image is blended with the first based on its transparency.
- image.paste() Composites one image onto another at specified coordinates. The second image is overlaid on top of the first image, preserving transparency and using high-quality interpolation.
- image.readBase64() Creates a image from a Base64 string.
- image.resize() Resizes a image.
- image.rotate() Rotates a image at a specified point by a specified angle.
- image.rotateDrawingAxis() Rotates all subsequent drawing on a image at a specified point by a specified angle.
- image.scaleToFit() Creates a resized image with the aspect ratio maintained.
- image.setAntialiasing() Switches antialiasing on or off in rendered graphics.
- image.setBackgroundColor() Sets the background color for the image. The background color is used for clearing a region. Setting the background color only affects the subsequent ImageClearRect calls
- image.setDrawingAlpha() Sets the current drawing alpha for images. All subsequent graphics operations use the specified alpha.
- image.setDrawingColor() Sets the current drawing color for images. All subsequent graphics operations use the specified color.
- image.setDrawingStroke() Sets the drawing stroke for points and lines in subsequent images.
- image.setDrawingTransparency() Specifies the degree of transparency of drawing functions.
- 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.shear() Transforms an image by shearing it along one axis, creating a slanted or skewed effect. Positive values slant in one direction, negative values in the opposite direction.
- image.shearDrawingAxis() Shears the drawing canvas.
- image.translate() Moves an image to a new position by specified x and y offsets. The original image content is cleared and redrawn at the new location.
- image.translateDrawingAxis() Translates the origin of the image context to the point (x,y) in the current coordinate system. Modifies the image context so that its new origin corresponds to the point (x,y) in the image's original coordinate system.
- image.write() Writes a image to the specified filename or destination.
- image.writeBase64() Writes Base64 images to the specified filename and destination.
- image.writeToBrowser() Writes image to browser.
- image.XORDrawingMode() Sets the paint mode of the image to alternate between the image's current color and the new specified color.
Objects