jocontacter / asceticcropper

ascetic cropper repo
MIT License
9 stars 2 forks source link

Horizontal rectangle doesn't work until resizing #2

Closed ederjbezerra closed 3 years ago

ederjbezerra commented 3 years ago

This plugin is amazing and it's the unique that worked nice and without errors, but when I use

cropper.MaskPainter = new RectangleMaskPainter() { CornerRadius = 10, Corners = CornersEnum.All, MaskHeight = 0.5, MaskWidth = 1 };

and the loaded image for cropping is 1:1, the crop area is raised also as a square(1:1). It only will turn into a rectangle area if I resize to the minimum as I can, suddenly it becomes the expected rectangle. If I open a vertical image, it works at first shot.

Does any one here have any idea of how to solve that?

jocontacter commented 3 years ago

"This plugin is amazing and it's the unique that worked nice and without errors, but when I use" - thank you. i'll check this problem

jocontacter commented 3 years ago

This plugin is amazing and it's the unique that worked nice and without errors, but when I use

cropper.MaskPainter = new RectangleMaskPainter() { CornerRadius = 10, Corners = CornersEnum.All, MaskHeight = 0.5, MaskWidth = 1 };

and the loaded image for cropping is 1:1, the crop area is raised also as a square(1:1). It only will turn into a rectangle area if I resize to the minimum as I can, suddenly it becomes the expected rectangle. If I open a vertical image, it works at first shot.

Does any one here have any idea of how to solve that?

what version do you have installed? can you tell me the size of your picture? Android or iOS?

ederjbezerra commented 3 years ago

This plugin is amazing and it's the unique that worked nice and without errors, but when I use cropper.MaskPainter = new RectangleMaskPainter() { CornerRadius = 10, Corners = CornersEnum.All, MaskHeight = 0.5, MaskWidth = 1 }; and the loaded image for cropping is 1:1, the crop area is raised also as a square(1:1). It only will turn into a rectangle area if I resize to the minimum as I can, suddenly it becomes the expected rectangle. If I open a vertical image, it works at first shot. Does any one here have any idea of how to solve that?

what version do you have installed? can you tell me the size of your picture? Android or iOS?

Version 1.0.4 on Android. Size: 800x800 px

jocontacter commented 3 years ago

Fixed in 1.0.5

ederjbezerra commented 3 years ago

Fixed in 1.0.5

That's it! Thank you, now it works!