Capture front camera photo is vertically flipped after being saved #213
Comments
@dannyhertz hey, that's interesting, thanks for reporting. my guess is that it could be the thumbnail which transitions to the actual photo once you start zooming. |
Interesting! I tried debugging this for a few hours the other day by commenting out all thumbnail generating code and trying to reduce the path from snapshot to camera roll and was not able to properly save a front facing photo without some form of corruption. Are you able to successfully save a front facing photo? |
I've the same problem. |
FWIW, in my app, I take the photo and combine it w/ another image and then save that new image to file. In this case, any image taken from the front camera is not flipped. |
at some point a bug got introduced where the orientation just isn't being set properly on the image, the camera default is 90 CCW (landscape left). so when that get's mirrored in it's vertical, it flips it upside-down. will try hunt it down where the orientation is getting reset. thanks for all the feedback. |
@piemonte Hi, did you find out what is causing this bug? I found out that imageSamplerBuffer's orientation is set to LeftMirrored even if I set Portrait for PBJ |
This issue is still open, using the latest version 0.4.2. |
@zipnadarien Do you mind sharing your solution? |
Larry M - been a long time since I worked on that code, give me a few weeks On Sun, Apr 3, 2016 at 1:31 AM, Larry M notifications@github.com wrote:
|
Thanks @zipnadarien |
It's been a year since I last worked on my app (slo-mo booth). As I mentioned in my post from Jan2015, when I grab a photo, I insert it into another image. I'm creating a filmstrip of 4 photos in the final image and that's what I save. I reviewed my code for a bit today and don't see that I'm doing anything different or did any kind of mod to the original PBJVision code. So....either I did a mod that I don't remember (didn't make any comments in the code or my repo) or I didn't do anything cause I don't see the bug for how I'm using the photo feature. |
I've the same problem. Any updates? |
@piemonte : Did you find any solution for this issue? |
Try this one : if (objPhoto.imageOrientation == UIImageOrientationLeftMirrored) {
My issue is fixed by using above code. |
I'm trying to write a photo to the photo album and my front facing photos are always vertically flipped (until it is slightly zoomed). A GIF to help:
I've tried saving the UIImage with the orientation set to image.imageOrientation like so:
I've also tried to save the PBJVisionPhotoJPEGKey data with the PBJVisionPhotoMetadataKey dictionary and am getting the same results:
vision.cameraOrientation is set to 0 and vision.mirroringMode is set to PBJMirroringAuto at the time if that helps.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: