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

When I am zooming, it's capturing black and white image #597

Open
dhaval97micro1 opened this issue Oct 6, 2023 · 1 comment
Open

When I am zooming, it's capturing black and white image #597

dhaval97micro1 opened this issue Oct 6, 2023 · 1 comment

Comments

@dhaval97micro1
Copy link

Describe the bug
I am using Camera in my app and have enabled the zooming feature using the default provided prop, when I zoom in and capture the camera, it captures a black-and-white image

To Reproduce
Below is my code:

<Camera
ref={cameraRef}
torchMode={flashMode}
style={{
aspectRatio: 3 / 4,
}}
focusMode="on"
resetFocusWhenMotionDetected={true}
hideControls={true} // (default false) optional, hides camera controls
showCapturedImageCount={false} // (default false) optional, show count for photos taken during that capture session
/>

// Capture method
const onCapture = async () => {
let {uri} = await cameraRef.current.capture(true);
if (uri.startsWith('file://')) {
let path = uri;
setImageToCrop(path);
}
};

Expected behavior
It should keep the colours as it is and not make it black and white

Screenshots
Screenshot 2023-10-06 at 1 26 52 PM

Screenshot 2023-10-06 at 1 28 09 PM
  • Version [e.g. 22]

Additional context
Mainly facing this issue with iPhone 14 pro and iOS 17.0.2

@scarlac
Copy link
Collaborator

scarlac commented Oct 14, 2023

Can you reproduce this with the example project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants