Skip to content

webp and jpg same size #109

@minikupa

Description

@minikupa
String path =
    (await getApplicationDocumentsDirectory()).path + "/$uuid.webp";
var result = await FlutterImageCompress.compressAndGetFile(
  file.absolute.path, path,
  format: CompressFormat.webp,
  quality: 70,
);

String path2 =
    (await getApplicationDocumentsDirectory()).path + "/$uuid.jpeg";
var result2 = await FlutterImageCompress.compressAndGetFile(
  file.absolute.path, path2,
  format: CompressFormat.jpeg,
  quality: 70,
);

print(result.lengthSync());
print(result2.lengthSync());

in android
Why are result1 and result2 the same size?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions