Skip to content

Commit 92dc1fa

Browse files
Merge pull request #56 from TarasBounty/main
#52: Crop issue fix.
2 parents c08e8ec + e494418 commit 92dc1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/calculators/calculate_on_crop_params.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ OnCropParams caclulateOnCropParams({
134134
cropSizeWidth = cropSizeMax;
135135
cropSizeHeight = cropSizeWidth / aspectRatio;
136136
} else {
137-
cropSizeHeight = cropSizeMax;
137+
cropSizeHeight = cropSizeMax / aspectRatio;
138138
cropSizeWidth = cropSizeHeight * aspectRatio;
139139
}
140140
return OnCropParams(

0 commit comments

Comments
 (0)