Sorry, I had this problem mixed with a fix I was trying out for other
camera issue, and the description is not quite correct. But still a problem.
What happens is this:
The pic is displayed mirrored, horizontally, on the camera preview. That's
fine.
But when I "pick up" the bytes the camera activity stored in the path I
passed via:
cameraIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT,
Uri.fromFile(new File("myimgpath.jng")));
and build a bitmap again with them, the bitmap is rotated 90°.
I don't see a way to hardcode a fix for this, since with the back camera it
doesn't happen, and I don't know if the returned bitmap was taken using
front or back camera... any idea?
On Tuesday, July 31, 2012 6:23:36 AM UTC+2, Dusk Jockeys Android Apps wrote:
>
> When you are taking photos of yourself in the front camera, people
> naturally expect to see the same as if they look in a mirror, so the
> preview is flipped horizontally. Writing is reversed etc.
>
> When the photo is taken, it then takes the real image, without the
> flipping, so you dont get reversed writing. So it is the preview that is
> "wrong", not the final image.
>
>
>
> On Tuesday, July 31, 2012 3:12:47 AM UTC+8, bob wrote:
>
>> I believe I have seen it flipped horizontally in the camera app on my Ice
>> Cream Sandwich.
>>
>>
>> If I was coding, I would just flip it again horizontally to get it back
>> to normal.
>>
>>
>> Or, I would just ignore it as most people are taking pictures of their
>> faces, which are usually somewhat symmetric.
>>
>>
>>
>> On Monday, July 30, 2012 9:12:47 AM UTC-5, user123 wrote:
>>>
>>> Uhm... don't remember. Is there a solution for any of the cases? I'll
>>> check it again.
>>>
>>>
>>> On Monday, July 30, 2012 3:50:52 PM UTC+2, bob wrote:
>>>>
>>>> Rotated 180 degrees or flipped horizontally? The latter seems more
>>>> probable.
>>>>
>>>> On Monday, July 30, 2012 7:59:02 AM UTC-5, user123 wrote:
>>>>>
>>>>> I have the same problem described here: Android Front Facing Camera
>>>>> Taking Inverted
>>>>> Photos<http://stackoverflow.com/questions/10283467/android-front-facing-camera-taking-inverted-photos>
>>>>>
>>>>> What's different in my case is that I'm starting the camera app via
>>>>> intent, not implementing it myself. So probably no way to use CameraInfo
>>>>> or
>>>>> the like. How can I solve this?
>>>>>
>>>>> In order to summarize: When starting camera via intent and take the
>>>>> picture using front camera, the returned bitmap is rotated by 180°.
>>>>>
>>>>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en