photo-editor icon indicating copy to clipboard operation
photo-editor copied to clipboard

How to rotate an image?

Open najmul-csebuet opened this issue 6 years ago • 3 comments

najmul-csebuet avatar Dec 05 '18 12:12 najmul-csebuet

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 avatar Dec 11 '18 14:12 jnes92

@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)

jnes92 avatar Jan 04 '19 09:01 jnes92

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

kirti301290 avatar Jun 16 '20 10:06 kirti301290