question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad quality camera on Android devices

See original GitHub issue

library version

├── expo-camera@12.2.0
├── expo-gl@11.3.0
├─┬ gl-react-expo@5.2.1
│ ├── expo-gl@11.3.0 deduped
│ └── gl-react@5.2.0 deduped
├── gl-react@5.2.0
└─┬ webgltexture-loader-expo-camera@2.0.0
  └── expo-camera@12.2.0 deduped

Expected behavior

iOS (using gl-react/GLCamera.js example) IMG_5298

This example from Expo it’s working fine on both Android and iOS.

Actual behavior

Android (using gl-react/GLCamera.js example) Screenshot_20220709_131549_host exp exponent

Steps to reproduce the behavior

gl-react/GLCamera.js

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
grecommented, Jul 11, 2022

indeed here we use createCameraTextureAsync to get a picture of the camera from the “view”, then I think it’s due to the internal implementation of Expo, which will simply capturing the camera view https://github.com/expo/expo/blob/168ee43f71f005baa11edf98e518593443e1807a/packages/expo-gl/ios/EXGL/EXGLObjectManager.mm#L160

1reaction
grecommented, Jul 9, 2022

Did you try to increase the values of the camera at
https://github.com/gre/gl-react/blob/master/examples/cookbook-rn-shared/examples/camera/GLCamera.js#L54-L55 ?

            width: 400,
            height: 533.33,

thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can an Android phone have a really good camera, but ...
There is no such thing as “Android camera quality.” Different Android devices have different cameras from different manufacturers. Android is an operating ...
Read more >
Why Do Androids Have Bad Cameras? [Answered 2022]
The reason the Android camera quality is so bad is that third-party apps that use the Camera API tend to have lower-quality picture-taking...
Read more >
Why Android Camera Apps Are So Bad Compared to iOS
Why are android camera apps so bad compared to iphone? Android phones appeal to many — from affordable low-end devices to higher-end models ......
Read more >
Why third party apps on Android have bad camera quality, and ...
As an Android developer, I wanted to provide some insight as to why Android third-party camera quality is often worse than on iOS, ......
Read more >
Why Is Instagram Camera Quality So Bad on Android
However, that might change soon since Android 13 will add support for HDR video in camera apps. Now it's entirely up to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found