Frage

I am using the CWAC-Camera library within my Android application. Recently it was upgraded to v0.6.3, but since then I have noticed that rotation of images doesn't seem to work as expected.

I am starting a CameraFragment within an Activity that is locked to landscape orientation, and have observed the rotation is not correct for an output image with or without setting CameraFragment.lockToLandscape(true). I have managed to reproduce this in the demo application when the "Lock to Landscape" is checked (steps and a screenshot provided below). I have been testing on a Nexus 4 and Nexus 5 both running Android 4.4.2.

Has anyone else experienced this issue since upgrading to v0.6? Previously we were using 0.5.4 which didn't seem to have this issue, but looking at the release log I see there has been a lot of changes to EXIF data/rotation etc.

Steps to reproduce in demo app:

  1. Open application, hold phone portrait or landscape
  2. Select "Lock to Landscape" and "Single shot mode" from menu
  3. Turn phone landscape (if started off portrait in step 1)
  4. Capture image, appears rotated as per screenshot.

screenshot of demo application

Cheers

War es hilfreich?

Lösung

For the record, this bug was fixed in v0.6.4 of the library.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top