module

CrImage

CrImage is a comprehensive 2D image processing library for Crystal.

Provides support for reading, writing, and manipulating images across multiple formats (BMP, PNG, JPEG, GIF, TIFF, WebP, ICO) with no external dependencies.

Example:

# Create and manipulate images
img = CrImage.rgba(400, 300, CrImage::Color::WHITE)
img.draw_circle(200, 150, 50, color: CrImage::Color::RED, fill: true)
CrImage::PNG.write("output.png", img)

# Read and transform images
img = CrImage.read("input.png")
resized = img.resize(800, 600, method: :bilinear)
CrImage::JPEG.write("output.jpg", resized, 85)

Nested types