ImageCompressor class

Enterprise image compression engine supporting quality-based compression, downsampling, batch processing, and memory-efficient streaming for large buffers.

Constructors

ImageCompressor()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

batchCompress(List<Uint8List> buffers, {double quality = 0.85}) List<CompressionResult>
Batch compresses multiple image byte buffers with shared quality settings.
compress(Uint8List bytes, {double quality = 0.85, bool preserveAlpha = false}) CompressionResult
Compresses raw image bytes using quality-based quantization and stride downsampling.
compressWithPreset(Uint8List bytes, CompressionPreset preset) CompressionResult
Compresses raw image bytes using a named CompressionPreset.
downsample(Uint8List bytes, {required int width, required int height, int factor = 2, int bytesPerPixel = 1}) Uint8List
Downsamples image dimensions by the given factor (e.g. 2 = half resolution).
estimateCompressedSize(int originalSize, {double quality = 0.85}) int
Estimates compressed output size without performing actual compression.