CompressParams class
Constructors
-
CompressParams(int quality, int targetWidth, int targetHeight, {bool autoCorrectionAngle = true, bool keepExif = false, CompressFormat format = CompressFormat.jpeg})
-
const
Properties
-
autoCorrectionAngle
→ bool
-
When true, uses EXIF orientation so pixels are upright (common Android gallery issue).
final
-
format
→ CompressFormat
-
Use
CompressFormat.jpeg to normalize HEIC/WebP from the gallery for backends that expect JPG.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
keepExif
→ bool
-
Keep embedded metadata in output (often undesirable for privacy).
final
-
quality
→ int
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
targetHeight
→ int
-
final
-
targetWidth
→ int
-
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