Native photo and video export: Media3 Transformer and Android graphics on Android, AVFoundation and Core Image on iOS.
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
-
exportImage(
{required String input, required String output, EditSpec edit = const EditSpec(), int quality = 90, bool keepLocation = false}) → Future< ExportResult> -
Exports the photo at
input(JPEG, PNG, HEIC, WebP…) to a JPEG atoutputwith the crop,maxDimensionand LUT ofedit(trim is ignored). -
exportVideo(
{required String input, required String output, EditSpec edit = const EditSpec()}) → VideoExport -
Exports
inputtooutputwith the edits inedit. -
getVideoFrame(
String path, {Duration position = Duration.zero, int? maxDimension}) → Future< Image> -
The frame of the video at
pathclosest toposition, as displayed (rotation applied), scaled down so that its longest side fitsmaxDimensionif given. Colors are the decoded values, as a video player shows them: the input ofLutFilterand of the export. Dispose the image when done. -
getVideoInfo(
String path) → Future< VideoInfo> -
Reads the displayed size, duration, audio and HDR flags of the video at
path.