Photo is too big

69 views
Skip to first unread message

yh c

unread,
Sep 5, 2023, 6:06:39 AM9/5/23
to Android CameraX Discussion Group
hi, I use CameraXExtensions demo to learn camerax, project address: https://github.com/android/camera-samples/tree/main/CameraXExtensions

When I was testing on the vivo s16 mobile phone, I found a very strange phenomenon. The pictures taken were very large, reaching 37M.

I made the project as follows:
1. Change the ratio of ImageCapture from the original 16:9 to 4:3
1png.png
2. Change the preview ratio from 16:9 to 4:3
2.png
3. Set PreviewView to 3:4
3.png

When I restored the code, the image size was normal. When I set the PreviewView to 3.1:4, the image size is also normal.

On the vivo s16, this phenomenon will occur as long as the photos taken are in a 4:3 ratio. I tested other phones and this problem did not occur.


yh c

unread,
Sep 5, 2023, 6:11:04 AM9/5/23
to Android CameraX Discussion Group, yh c
Here is the photo
4.zip

Charcoal Chen

unread,
Sep 5, 2023, 7:42:32 AM9/5/23
to yh c, Android CameraX Discussion Group
Hi,

This looks like an issue similar to https://issuetracker.google.com/288828159 which is a device specific issue.
I have created https://issuetracker.google.com/299069235 to track this issue and also loop you in the issue.
I'll add the device to the quirk list to workaround this issue. If there are any other questions or problems, please reply to https://issuetracker.google.com/299069235.
Thanks.

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/27d0a119-8edd-4254-b894-84812b563ce1n%40android.com.

Scott Nien

unread,
Sep 6, 2023, 12:56:49 AM9/6/23
to Charcoal Chen, yh c, Android CameraX Discussion Group
Hi , 

When using the test app,  are you enabling Extensions or not ? 



Scott Nien

unread,
Sep 6, 2023, 1:56:33 AM9/6/23
to Charcoal Chen, yh c, Android CameraX Discussion Group
Thanks !   I will also file a bug to Vivo. 

Scott Nien

unread,
Sep 7, 2023, 2:35:27 AM9/7/23
to Charcoal Chen, yh c, Android CameraX Discussion Group
Hi 
one more thing to clarify 

Does the issue happen only when setting the ImageCapture aspect ratio to 16:9  or 4:3?  
Reply all
Reply to author
Forward
0 new messages