Added rectangular and square cropping frame support.#220
Added rectangular and square cropping frame support.#220npu3pak wants to merge 2 commits intoAlexLittlejohn:masterfrom npu3pak:master
Conversation
|
@AlexLittlejohn it looks like there are some conflicts here. There are some other items that I am working on that I will eventually cherry pick into other branches (data return type, etc.) I am also running into a threading issue with this line AVCaptureStillImageOutput.jpegStillImageNSDataRepresentation(buffer) -- and I would like to include EXIF output to figure out which thread in my app is clobbering this call. For some reason, the try? of this call was deprecated in iOS 10 and now exceptions in the jpeg data are thrown (see below). If you have any insight into this, that would be very much appreciated. It seems like dumping out the EXIF header should shed light on the situation: Fatal Exception: NSInvalidArgumentException `Fatal Exception: NSInvalidArgumentException
|
|
+1 |
In my project, you need to crop the square areas of the images. I think this is a fairly frequent use case.
Since there are now 3 cropping modes (none, square, rectangle), I replaced the allowResizing parameter with the resizingMode enumeration.