itouch2 / PhotoTweaks

Drag, Rotate, Scale and Crop
MIT License
1.26k stars 167 forks source link

Crop rect behaves weirdly #4

Open KBog opened 9 years ago

KBog commented 9 years ago

Hello again itouch2,

You might be aware of this issue, but I noticed a weird behavior in the crop rect, for example if I pull the lower horizontal line downwards (outside of the bounds), the WHOLE rect becomes smaller, not just that edge is restored to the lower bound of the image.

All sides collapse closer together. You can keep doing that and end up with a 1 pixel rect.

Thought to let you know, good stuffs!

Thanks!

itouch2 commented 9 years ago

Thanks again KBog,

I know what you are referring. If you pull just pull the horizontal line lower, and not change the width, the crop area will be calculated again to fit in the original max crop size, in which way, the photo will be shrined. However, in Apple's Photo.app, the photo will be expanded, which is a better solution. If I found a perfect way, I will improve it. Or you can pull a request to improve it.

Thanks.