diff --git a/lib/src/calculators/calculate_on_crop_params.dart b/lib/src/calculators/calculate_on_crop_params.dart index 462b258..d1cac1e 100644 --- a/lib/src/calculators/calculate_on_crop_params.dart +++ b/lib/src/calculators/calculate_on_crop_params.dart @@ -134,7 +134,7 @@ OnCropParams caclulateOnCropParams({ cropSizeWidth = cropSizeMax; cropSizeHeight = cropSizeWidth / aspectRatio; } else { - cropSizeHeight = cropSizeMax; + cropSizeHeight = cropSizeMax / aspectRatio; cropSizeWidth = cropSizeHeight * aspectRatio; } return OnCropParams(