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
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< writer, {int quality = 80, double scale = 1, bool preserveEXIF = true}) → voidint> > - 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