photo-editor
photo-editor copied to clipboard
How to rotate an image?
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 👍
@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)
Hello @jnes92 and @najmul-csebuet can you please add rotating feature Thanks