engine library
The pure-Dart image engine, without any Flutter dependency.
Import this from your own isolates, from a Dart server, or from CLI tools. Flutter apps can import the main library instead, which re-exports all of this.
ImagePipeline.custom steps receive a package:image Image; add
image to your own pubspec to write one.
Classes
- ColorMatrix
-
A 4x5 colour matrix, the same model Flutter's
ColorFilter.matrixuses. - CubeLut
-
A colour look-up table in the Adobe/Resolve
.cubeformat. - FilterPreset
- A named, ready-made look.
- ImagePipeline
- An immutable, reusable recipe of image operations.
- OutputFormat
- How the processed image is encoded.
- PipelineResult
- The encoded output of a pipeline run.
Enums
- EncodedFormat
- Encoded image formats the engine can write.
- MetadataPolicy
- What happens to EXIF metadata (camera, timestamps, GPS) on output.
- RedactionStyle
- How ImagePipeline.redact hides a region.
- ResizeFit
- How ImagePipeline.resize treats a target box with both sides set.
- WatermarkAnchor
- Where ImagePipeline.watermark places the mark.
Constants
- defaultMaxInputPixels → const int
- The default ceiling on input size: 64 megapixels covers 48-50 MP phone sensors while refusing decompression bombs.
Exceptions / Errors
- ImageProcessingException
-
Base class for errors raised while running an
ImagePipeline. - ImageTooLargeException
-
The input declares more pixels than the configured
maxInputPixels. - UnsupportedImageException
- The input bytes are not an image format the engine can decode.