OptimizationConfig class

Configuration for image optimization operations.

Constructors

OptimizationConfig({int jpegQuality = 85, int webpQuality = 80, ImageResize? resize, bool convertToWebp = false, bool convertToJpeg = true, bool stripMetadata = true})
Creates an optimization config with defaults.

Properties

convertToJpeg → bool
Convert PNGs without alpha to JPEG.
final
convertToWebp → bool
Convert images to WebP format.
final
hashCode → int
The hash code for this object.
no setterinherited
jpegQuality → int
JPEG output quality (1-100).
final
resize → ImageResize?
Target dimensions for resizing, if any.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stripMetadata → bool
Remove metadata (EXIF, etc.) from images.
final
webpQuality → int
WebP output quality (1-100).
final

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