Skip to content

Commit

Permalink
Merge pull request #56 from TarasBounty/main
Browse files Browse the repository at this point in the history
#52: Crop issue fix.
  • Loading branch information
ikbendewilliam authored Dec 30, 2024
2 parents c08e8ec + e494418 commit 92dc1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/calculators/calculate_on_crop_params.dart
Original file line number Diff line number Diff line change
@@ -134,7 +134,7 @@ OnCropParams caclulateOnCropParams({
cropSizeWidth = cropSizeMax;
cropSizeHeight = cropSizeWidth / aspectRatio;
} else {
cropSizeHeight = cropSizeMax;
cropSizeHeight = cropSizeMax / aspectRatio;
cropSizeWidth = cropSizeHeight * aspectRatio;
}
return OnCropParams(

0 comments on commit 92dc1fa

Please sign in to comment.