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

How to rotate an image? #53

Open
najmul-csebuet opened this issue Dec 5, 2018 · 3 comments
Open

How to rotate an image? #53

najmul-csebuet opened this issue Dec 5, 2018 · 3 comments

Comments

@najmul-csebuet
Copy link

No description provided.

@jnes92
Copy link

jnes92 commented Dec 11, 2018

Actually, there is no explicit feature for rotating images in total.
You can open the CropEditor and rotate the image with the usual pinch gestures, but it won´t be usable for just doing 90° rotation.

Maybe, you can add the feature by yourself. Add an button to the ViewController for rotating.
As a starting point you might be able to use this:

func rotatedImageWithTransform(_ rotation: CGAffineTransform, croppedToRect rect: CGRect) -> UIImage (UIImage+Crop.swift)

I will also try to get this working 👍

@jnes92
Copy link

jnes92 commented Jan 4, 2019

@najmul-csebuet Hey, so I just wanted to give you a quick update.

We forked the repository and included rotating (and some other changes).
If you want you can check it out as a reference for rotating, but I won´t advice you to just use the forked version.
We also changed a lot of internal things (like cropping picture will be saved immediately, you cant delete drawings after rotation)

@kirti301290
Copy link

Hello @jnes92 and @najmul-csebuet
can you please add rotating feature
Thanks

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

3 participants