Utilities
Learn how to perform image transformations such as resizing, rotating, cropping, flipping, shearing, and translating images using BoxLang.
Table of Contents
Image Properties
Get Image Dimensions
img = ImageNew("photo.jpg");
// Get width and height
width = img.getWidth(); // Member function
height = img.getHeight(); // Member function
// BIF syntax
width = ImageGetWidth(img);
height = ImageGetHeight(img);
writeln("Image is #width# x #height# pixels");Check Image Type
Get Comprehensive Info
Format Support
Get Readable Formats
Get Writeable Formats
Check Format Support
Supported Formats Reference
Format
Read
Write
Notes
Validation Functions
IsImage()
IsImageFile()
Validation Examples
Color Reference
Named Colors
Color
Hex Value
Color
Hex Value
Hex Colors
Color Format Examples
Image Information
ImageInfo() Structure
Color Model Types
Binary Operations
Get Image as Byte Array
Get Java BufferedImage
Base64 Encoding
Utility Functions Reference
Function
Purpose
Example
Complete Utility Examples
Image File Browser
Format Converter
Image Validator
Batch Format Detection
Next Steps
Last updated
Was this helpful?
