Comments (16)
Hi, what platform is this about?
from react-native-camera-kit.
This happens on IOS. Did not test android.
from react-native-camera-kit.
Is this issue still relevant?
from react-native-camera-kit.
Same issue on IOS.
from react-native-camera-kit.
Android too, any update?
from react-native-camera-kit.
I just started using this package and can confirm this issue. ios iphone7plus. Camera definitely starts zoomed in (possibly 2x?) and not possible to zoom out, but can zoom in further and then back to (2x?).
Since this was reported first in sep 2016, and still persists in mar 2018, doesn't look like it's been acknowledged or up for a possible fix. It doesn't seem heavily reported, so maybe it only affects a small group. Does anyone have a workaround?
from react-native-camera-kit.
To add:
If you open the camera on iPhone and change between the views, square, photo, video, portrait, you can see they have different start zoom presets.
On ios it might have something to do with AVCaptureSessionPreset in CKCamera.m, but haven't had a chance to test it out. I'm hoping that's the issue.
from react-native-camera-kit.
Yes this happens! Most devs don't notice this
from react-native-camera-kit.
from react-native-camera-kit.
Unfortunately, I wasn't able to fix this module but I wrapped and bridged the AVFoundation camera on apple dev and it works the way i need it to. I figured I would post my findings for reference.
I used a different interface AVCaptureDeviceDiscoverySession
I used AVCaptureDeviceTypeBuiltInWideAngleCamera as the device type
I used the preset AVCaptureSessionPresetPhoto
I unset the videoGravity = AVLayerVideoGravityResizeAspectFill;
This gave me 100% native view and FOV of the iPhone, as if I opened the native camera, and allows to take photos at 4032x3024 resolution, which is what I needed.
I do appreciate this project, it really gave me some insight on how to do some things, so thank you. :)
from react-native-camera-kit.
@MarkH-Dev Good to hear, no input on fixing the zoom on android?
from react-native-camera-kit.
I just made a PR #172 for this issue, can someone check if its ok? :)
I didn't find any problem but I don't use the whole package.
how to do a quick install:
npm install --save git+https://github.com/FlaviooLima/react-native-camera-kit#iOS-Zoom-Problem
or my master that has this fix and a few more.
npm install --save git+https://github.com/FlaviooLima/react-native-camera-kit
from react-native-camera-kit.
@FlaviooLima Great work! any idea what causes it on Android?
from react-native-camera-kit.
@filipef101 I didn't see any problem on Android devices. :/
I tested on Samsung s5 mini and One Plus 2.
Can you check if this is happening in my master? can you give me more details?
from react-native-camera-kit.
I use 1:1 camera view, but for example instagram uses 9:16 and has the same camera horizontal area as this package when in 1:1, the default camera app is like 3:4 and has more horizontal area so it does have some zoom, if you are using 9:16 you won't notice maybe.
from react-native-camera-kit.
@filipef101 I think you are 50% right in what you are saying if I understand it right.
The current bug in android is that the ratioOverlay color area is not showing and the photo taken it's not being cut to the suppose ratioOverlay area.
On iOS If you give some transparency to the ratioOverlay color you will see that the camera ratio is fixed, what you will see is that the ratioOverlay Color will give the idea that the ratio is not fixed but it is. After the photo is taken the photo ratio is passed to what you choose.
In Android, none of the above is happening.
Did I get it right ?? :)
if not please explain again :)
PS: I believe that on iOS there is still some zoom.
from react-native-camera-kit.
Related Issues (20)
- 'AVCapturePhoto' is only available in iOS 11.0 or newer
- javax.xml.bind.UnmarshalException HOT 3
- Geting current Camera authorization shouldn't require a ref HOT 2
- Can't build the package after installing and doing ./gradlew clean HOT 2
- ERROR Invariant Violation: requireNativeComponent: "CKCameraManager" was not found in the UIManager. HOT 5
- react-native-webview error, supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher. HOT 1
- v14.0.0-beta13: Unsupported top level event type "onError" dispatched, js engine: hermes HOT 3
- Latest stable version not compiling? HOT 2
- Get error "Could not capture still image" on iPhone 15 iOS 17.x HOT 9
- How to capture the image when scanning barcode HOT 2
- Is there any plans to support video recording?
- Ability to change scan code area size
- Scan code transparency overlay handling HOT 1
- The Code Scanner Doesn't always work HOT 7
- Ignoring user orientation settings HOT 2
- iOS: Green indicator of camera don't close HOT 6
- Barcode - camera's frame not properly centered with camera height HOT 10
- TC7Lk8Ak16WYwSiR4mTFxJKSMTxw9PbK5R HOT 1
- https://github.com/AnnAngela/AnnAngela/blob/58d95c9ca456e2aa18943eb7e4f25d7a40406173/test.mjs#L1-L15 HOT 1
- iPhone 14 pro and iPhone 15 Pro not able to focus QR code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-camera-kit.