Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo camera is more zoomed in than default iPhone Camera #5437

Open
applesilver opened this issue Aug 25, 2019 · 21 comments
Open

Expo camera is more zoomed in than default iPhone Camera #5437

applesilver opened this issue Aug 25, 2019 · 21 comments

Comments

@applesilver
Copy link

I have implemeneted expo camera compoenet and the camera is more zoomed in than default iPhone Camera (probably 1.1x or 1.2x). I tried to find solution on google but there's no solution for this problem yet on the internet.

Please give me the solution to this

@cruzach
Copy link
Contributor

cruzach commented Aug 26, 2019

You can set the zoom level with the zoom prop, but it's already 0 by default

I've made this snack, and you're right- there's a small difference between the default Expo Camera and the default iPhone camera (on iPhone 7, at least. Curious what device you're using)

@applesilver
Copy link
Author

Yes I've tried that. And I have tried both iphone 7 and iphone xr.

@ide
Copy link
Member

ide commented Aug 28, 2019

IIRC this has to do with the resolution the camera is set to. I forget the specifics but when I was doing UIKit programming there was some kind of mode that affected the camera's zoom.

@flagrede
Copy link

I have tried on expo 35, on an Ipad mini 4 and I also reproduce the issue.
Any update on this ?
Other related issues: #2967 #1527

@ksairi
Copy link

ksairi commented Nov 28, 2019

@ide do we know when this could be fix? sdk 36?

@impactcolor
Copy link

On looking into this on my iphone it selects the zoom of the video recording camera not the picture photo camera view. From the expo docs it appears there's no difference between CAMERA for photo camera and video recording camera.

@brentvatne
Copy link
Member

brentvatne commented Apr 9, 2020

react-native-camera (which is based on expo-camera) attempted to handle this adding a maxZoom prop: react-native-camera/react-native-camera#2510. lots of discussion in react-native-camera/react-native-camera#1772

we could maybe do something similar. open to pull requests!

@sungsong88
Copy link

I have two projects: one with SDK35 and the other one with SDK37, and both still have this problem. Any fixes yet?

@davidcian
Copy link

Any news on this? I have an app which relies on the camera, and while I'm down-playing the issue for the time being, it would be nice to have the same zoom as the default iOS camera app.

@smirea
Copy link

smirea commented Mar 5, 2021

any updates on this?

@brentvatne
Copy link
Member

@smirea - this is the only update:

react-native-camera (which is based on expo-camera) attempted to handle this adding a maxZoom prop: react-native-camera/react-native-camera#2510. lots of discussion in react-native-camera/react-native-camera#1772

we could maybe do something similar. open to pull requests!

@aibrDev
Copy link

aibrDev commented Jun 3, 2021

Expo V 41.0.1 same issue.

@umutsesen
Copy link

still same.. really cannot believe it

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

@github-actions github-actions bot added the stale label Jan 18, 2022
@smirea
Copy link

smirea commented Jan 18, 2022

still happening

@github-actions github-actions bot removed the stale label Jan 18, 2022
@villeliekari
Copy link

villeliekari commented Mar 3, 2022

Adding pictureSize={"Photo"} prop inside Camera component worked for me. https://docs.expo.dev/versions/latest/sdk/camera/#getavailablepicturesizesasync

@jaltin
Copy link

jaltin commented Mar 30, 2022

Adding pictureSize={"Photo"} prop inside Camera component worked for me. https://docs.expo.dev/versions/latest/sdk/camera/#getavailablepicturesizesasync

I tried this but unfortunately it doesn't work for me (IPhone XS).

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

@github-actions github-actions bot added the stale label Jun 28, 2022
@jaltin
Copy link

jaltin commented Jun 28, 2022

Still an issue

@expo-bot
Copy link
Collaborator

Thank you for filing this issue!
This comment acknowledges we believe this may be a bug and there’s enough information to investigate it.
However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

@brentvatne
Copy link
Member

react-native-camera (which is based on expo-camera) attempted to handle this adding a maxZoom prop: react-native-camera/react-native-camera#2510. lots of discussion in react-native-camera/react-native-camera#1772

we could maybe do something similar. open to pull requests!

not much can be added on top of this. if you'd like to open a pr to fix it, it's welcome. i will lock the issue now and we can discuss further in a pr

@expo expo locked and limited conversation to collaborators Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests