JpegTransformer class

Transformations for JPEG images

  • Transforms based on jpegtran code (lossless if properly aligned)
  • Recompression

Implemented via FFI to libjpeg-turbo's jpegtran API

Users need to call dispose to free memory

Constructors

JpegTransformer(Uint8List jpegBytes)

Properties

hashCode int
The hash code for this object.
no setterinherited
jpegBytes Uint8List
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
getInfo() JpegInfo
Get basic information from the JPEG header
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recompress({int quality = 80, double scale = 1, bool preserveEXIF = true}) Uint8List
Lossy recompression and optional downscaling Scale should be 1, 0.5, 0.25 or 0.125
recompressTo(EventSink<List<int>> writer, {int quality = 80, double scale = 1, bool preserveEXIF = true}) → void
Lossy recompression and optional downscaling Scale should be 1, 0.5, 0.25 or 0.125
toString() String
A string representation of this object.
inherited
transform(JpegTransformation transformation) Uint8List
Perform a transformation

Operators

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