Skip to content

Croping drastically reduce image width and height #108

@mde-pach

Description

@mde-pach

When I crop my phone native captured image 4608 by 3456 pixel just a little bit (like 100 pixels up) the result is a 1062 by 864 instead of an 4500 by 3456 image.

File croppedImage = await ImageCropper.cropImage(
    sourcePath: myImage.path,
    aspectRatioPresets: [
        CropAspectRatioPreset.square,
        CropAspectRatioPreset.ratio3x2,
        CropAspectRatioPreset.original,
        CropAspectRatioPreset.ratio4x3,
        CropAspectRatioPreset.ratio16x9
    ],
    androidUiSettings: AndroidUiSettings(
        toolbarTitle: 'Cropper',
        toolbarColor: Colors.deepOrange,
        toolbarWidgetColor: Colors.white,
        initAspectRatio: CropAspectRatioPreset.original,
        lockAspectRatio: false),
    iosUiSettings: IOSUiSettings(
        minimumAspectRatio: 1.0,
    )
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions