ImageUtils class

Utility functions for images croping, compressing, etc.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

compressImage({required File image, int quality = 70, int percentage = 70, int targetWidth = 0, int targetHeight = 0}) Future<File>
Compress an image
cropImage({required File image, required int originX, required int originY, required int width, required int height}) Future<File>
Crops an image
resizeImage({required File image, int quality = 80, int targeWidth = 600, int targetHeight = 300}) Future<File>
Gets the properties of an image from an image given the image and compress an image according to targetWidth and targetHeight.