Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change crop size affect Source image size and result image #13

Open
tucanae47 opened this issue Aug 27, 2013 · 1 comment
Open

Change crop size affect Source image size and result image #13

tucanae47 opened this issue Aug 27, 2013 · 1 comment

Comments

@tucanae47
Copy link

When i change the size if the cropsize lets say a size of 100x100, i obtain a sourceImageView as small as the cropView.

I have tried to change the cropzise without a reset, also i tried to change the size of the frame of the sourceimageView, it works sourceImageview big, cropView small. but then when i crop the result image its not the same one i selected to crop. (its like a crop of the upper part of the original crop selection)

I have read the code and tried to make changes so that i achieve the correct effect but im not able to do it so far. i think is related with the scale and the image transforms are done during the save operation.

@heitorfr
Copy link
Owner

heitorfr commented Dec 1, 2013

I'm not sure if I understood what you're trying to do. If you change te cropsize and you want to keep the image in the same place (not calling reset) then you'll have to update imageView.transform accordingly or else the image crop will get messed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants