ImageProcessWorker class final

Image processing worker configuration.

Resizes, compresses, and converts images natively for optimal performance.

Inheritance
Annotations

Constructors

ImageProcessWorker({required String inputPath, required String outputPath, int? maxWidth, int? maxHeight, bool maintainAspectRatio = true, int quality = 85, ImageFormat? outputFormat, Rect? cropRect, bool deleteOriginal = false})
const

Properties

cropRect → Rect?
Optional crop rectangle (x, y, width, height).
final
deleteOriginal → bool
Whether to delete original image after processing.
final
hashCode → int
The hash code for this object.
no setterinherited
inputPath → String
Path to input image file.
final
maintainAspectRatio → bool
Whether to maintain aspect ratio when resizing.
final
maxHeight → int?
Maximum height in pixels (null = no height limit).
final
maxWidth → int?
Maximum width in pixels (null = no width limit).
final
outputFormat → ImageFormat?
Output format (null = same as input).
final
outputPath → String
Path where processed image will be saved.
final
quality → int
Output quality (0-100, higher is better quality). Only applies to JPEG and WEBP formats.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workerClassName → String
Get the worker class name for native side.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Convert to map for platform channel.
override
toString() → String
A string representation of this object.
inherited

Operators

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