ImageProcessor class

Comprehensive image processing utilities to prevent AI image corruption and ensure proper vision encoder compatibility.

Constructors

ImageProcessor.new()

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

detectFormat(Uint8List bytes) String
Detects image format from byte signature
processImage(Uint8List imageBytes, {String? originalFormat}) Future<ProcessedImage>
Processes an image to ensure compatibility with AI vision encoders and prevents corruption issues that cause repeating text patterns.

Constants

supportedFormats → const List<String>
Supported image formats for vision encoders