Status Update
Comments
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #2
Hi,
Thanks for reporting the issue.
I tried to take NIHGT mode picture in our lab Pixel 7a devices remotely, looks like the results are correct. But I want to clarify some info with you.
On Pixel 7a devices, when taking a still image, CameraX will get a YUV image from the device. CameraX will rotate the YUV image data, and then encode the data to a JPEG file. It means that, for example:
-
When capturing a normal mode image, the exif data might be
- Dimension is 2560 x 1920 and need to rotate 90 degrees to become up-right image (photo viewers need to rotate 90 degrees)
-
When capturing a NIGHT mode image, the exif data might be
- Dimension is 1920 x 2560 and has been already an up-right image (photo viewers don't need to rotate)
Photo viewers should be able to display both the normal and NIGHT mode images correctly.
If what I explained above is not the case of the issue you reported, could you provide a video so that we can get more information from it. Thanks.
ch...@google.com <ch...@google.com> #3
Sorry that I need to update some incorrect info in
When taking a still image on Pixel 7a Android 15 device, CameraX actually obtains a JPEG format image from the pipeline. But the JPEG image byte data has been rotated. Photo viewer doesn't need to rotate the image and the image has been displayed in upright direction.
Unlike Samsung S25 device's NIGHT mode pictures or some other devices, those devices might keep the JPEG format image byte date the same as the camera sensor's orientation and put the rotation degrees value in the EXIF metadata.
If I misunderstand the problem, please kindly let me know. Thanks.
sh...@gmail.com <sh...@gmail.com> #4
Hi,
The orientation/manual rotation information you have mentioned does seem to be true, however the rotation still doesn't seem to be right for the images captured via CameraX despite manual rotation in places such as the standard AOSP image picker and a few third-party apps, really unsure what's going wrong there
ch...@google.com <ch...@google.com> #5
Hi,
Thanks for the information. Looks like the problem is caused by the thumbnail. In some apps, it might use the thumbnail to show the items. In that case, the issue might occur. Taking photo picker as example, the issue happens when you are in the grid view. You can try to long-click the problematic item to see the image in full view. Then, the image can be displayed correctly.
ch...@google.com <ch...@google.com> #6
Hi Scott Weist,
Some photo apps might use the image thumbnails to show the items in their grid view. By testing on the Pixel 9 Pro XL device, it seems like that the thumbnails in the captured CameraX Extensions NIGHT mode images will always be 320x240 with TAG_THUMBNAIL_ORIENTATION value always as 1 no matter what the device orientation is. It might cause those photo apps to have item images in incorrect orientation in the grid view.
Could you help to take a look on this issue? Thanks.
Description
CAMERA APPLICATION NAME AND VERSION: Secure Camera (
ANDROID OS BUILD NUMBER: Android 15 (reproducible on both stock and custom rom)
DEVICE NAME: Pixel 7a (seems to be impacting certain other Pixel devices too, could be a device-independent issue)
DESCRIPTION:
Applying night mode extension doesn't include rotation/orientation metadata as it normally does when the night mode extension is not applied. This can lead to gallery/other apps not correctly displaying captured images in their expected orientation.
OBSERVED RESULTS:
The rotation/orientation metadata is just blank/absent when night mode is applied but is present otherwise.
EXPECTED RESULTS:
The rotation metadata data should be included irrespective of the extension being applied.
Please do let me know if any additional information/details are needed.
Thanks a lot for all your time and support!
Regards,
Mohit