CompressionService class
Constructors
- CompressionService({required CloudMediaConfig config})
Properties
- config → CloudMediaConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compress(
String filePath, String mimeType) → Future< String> -
compressImage(
String filePath, {int? quality}) → Future< String> - Compress image to WebP (spec: quality 85, 40–80% reduction). Returns compressed path, or original if compression fails.
-
compressVideo(
String filePath) → Future< String> - Video: pass-through per spec (no transcoding in v1).
-
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