Fixes to center margin option

This commit is contained in:
Jobobby04
2023-04-16 13:10:43 -04:00
parent 7155b2be10
commit d8c2baa135
2 changed files with 5 additions and 3 deletions
@@ -220,7 +220,7 @@ object ImageUtil {
val height = imageBitmap.height
val width = imageBitmap.width
val centerPadding = 96 / (max(1, viewHeight) / height)
val centerPadding = 96 / (max(1, viewHeight) / height).coerceAtLeast(1)
val leftSourcePart = Rect(0, 0, width / 2, height)
val rightSourcePart = Rect(width / 2, 0, width, height)