Recursive AI

Changelog

All oneimage Go docs

All notable changes are listed here. The format follows Keep a Changelog and versions follow Semantic Versioning.

[1.0.0] - 2026-12-05

The first release. Zero third-party dependencies: it depends only on the Go standard library and Recursive AI's own pure-Go modules (onefont v1.2.0, onepdf v1.0.1 and onepdf/fonts v1.0.1), with no cgo, and builds from the module proxy with no workspace.

Added

  • Pixel model. Pixmap, a rectangle of interleaved samples in one PixelFormat: gray, RGB, CMYK, Lab and indexed colour; 8-bit, 16-bit, half-float and 32-bit float samples; no, straight or premultiplied alpha. It implements image.Image and draw.Image; FromImage shares the samples of the standard types. Image holds frames with delays, a loop count and metadata (ICC profile, Exif, XMP, text), carried through decode and encode.
  • Formats. Decoders and encoders, all written for this library, for PNG and APNG (every colour type and depth, Adam7, palette quantizer, compression levels and filters), JPEG (baseline, progressive, arithmetic-coded, 12-bit, CMYK and YCCK, restart markers, decoding at reduced size, optimised Huffman tables), GIF (animation, disposal, transparency, Wu and octree quantizers, sixteen dithers), WebP (lossy, lossless, alpha, animation), BMP, ICO and CUR, and TIFF (classic and BigTIFF, strips and tiles, none, LZW, Deflate, PackBits, JPEG and CCITT fax compression, predictors, 1 to 32-bit samples, multi-page). Our own deflate, inflate, LZW, Huffman and arithmetic coders sit underneath them.
  • API in two layers. The happy path is Decode, Identify, Open, Thumbnail, Convert and the Encode… functions on io.Reader and io.Writer, with Context twins. Below it, a format registry (RegisterFormat) with decoders and encoders that take region, scale and render-size hints, limits and parallelism; frames and layers as iterators; immutable operation values with names and parameters (Op, Apply, Describe). Errors are values matching ErrFormat, ErrLimit, ErrUnsupported and ErrOperation.
  • Colour management. ICC v2 and v4 profiles (matrix/TRC, gray, and lut8, lut16, lutAToB and lutBToA tables), the four rendering intents, black point compensation, a reusable cached ColorTransform, built-in sRGB, Display P3, Adobe RGB-compatible, ProPhoto, Rec. 2020, gray and generic CMYK profiles.
  • Operations. Resize with seven filters and fit modes, crop, pad, trim, rotate, flip, orientation, affine and perspective transforms; tone (levels, curves, gamma, exposure, hue and saturation, channel mixer, colour matrices, grayscale, posterize, threshold); Gaussian, box, median, sharpen, convolution, edge detection and other filters and effects; dithering and quantizers; histogram, statistics and equalisation; boolean path operations.
  • Drawing and compositing. Paths, strokes with caps, joins and dashes, solid, gradient, pattern and image brushes, 24 blend modes and the Porter-Duff operators, clipping.
  • oneimage/layers. Layered documents with pixel, group, fill and adjustment layers, masks, clipping and layer styles, rendered on demand tile by tile.
  • oneimage/svg. An SVG renderer with a bounded XML parser and CSS subset, paint servers, clips, masks, markers, filters and text, drawing at any size and region; nothing outside the document is opened.
  • oneimage/text. Rich text on onefont: OpenType shaping, bidi, line breaking, fallback, decorations, text on a path, vertical layout, hinting and colour glyphs.
  • oneimage/psd. Photoshop PSD and PSB reading and writing: merged image, layers, masks, layer styles, fill and adjustment layers.
  • oneimage/metafile. EMF, EMF+ and WMF: a drawing-command stream and a raster renderer.
  • oneimage/pdf. PDF pages drawn as rasters on onepdf: paths, text, images with JPEG, JPEG 2000 and JBIG2 decoders of our own, shadings, patterns, transparency groups, soft masks, blend modes, annotations and forms; registered as the pdf format.
  • oneimage/web. A net/http middleware that serves resized and converted images from URL commands, with HMAC-signed URLs, presets, source limits and a disk cache with ETag and single-flight processing.
  • oneimage/stdreg. A blank import that makes the standard library's image.Decode read every format.
  • Safety. Limits on pixels, dimensions, frames, metadata, expansion ratio and allocation, checked before allocating and settable per call; explicit stacks instead of recursion; no unsafe, no net or os/exec outside oneimage/web, no file access. Fuzz targets for every decoder and parser.
  • Determinism. Identical input and options give identical pixels and encoded bytes at any parallelism.
  • Conformance and benchmarks. The library passes our internal conformance kit as recorded in the README, and bench/ holds the speed rows against the standard library, golang.org/x/image, disintegration/imaging and the other Go libraries, with the C# library as the floor where no Go library does the task.