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

The difference between preview and result obtained. #419

Open
mastalsbota opened this issue Nov 22, 2021 · 1 comment
Open

The difference between preview and result obtained. #419

mastalsbota opened this issue Nov 22, 2021 · 1 comment

Comments

@mastalsbota
Copy link

What are you trying to achieve or the steps to reproduce?

The problem is the difference between the preview you have on the screen and the result after using zoom. You adjust the zoom to fill the screen without space between an object and the border of your screen, but the picture result recorded has space between the object and the border.

How did you initialize FA?

// Wrap code in markdown source tags
private final CameraConfiguration cameraConfiguration = CameraConfiguration
            .builder()
            .photoResolution(standardRatio(
                    highestResolution()
            ))
            .focusMode(firstAvailable(
                    continuousFocusPicture(),
                    autoFocus(),
                    fixed()
            ))
            .flash(firstAvailable(
                    autoRedEye(),
                    autoFlash(),
                    torch(),
                    off()
            ))
            .previewFpsRange(highestFps())
            .sensorSensitivity(highestSensorSensitivity())
            .frameProcessor(new SampleFrameProcessor())
            .build();

Fotoapparat fotoapparat = Fotoapparat
                .with(this)
                .into(cameraView)
                .focusView(focusView)
                .previewScaleType(ScaleType.CenterCrop)
                .lensPosition(back())
                .frameProcessor(new SampleFrameProcessor())
                .logger(loggers(logcat(), fileLogger(this)))
                .cameraErrorCallback(e -> {
                    Toast.makeText(ActivityFotos.this, e.toString(), Toast.LENGTH_LONG).show();
                })
                .build();

What was the result you received?

The picture result recorded has space to the border of the screen.

What did you expect?

Adjust the zoom to fill the screen without space between an object and the border of your screen.

Context:

  • implementation 'io.fotoapparat:fotoapparat:2.7.0' FA version:
  • Samsung Galaxy A21s (Android version 11) and Samsung Galaxy S6 Edge (Android version 7) Devices/APIs affected:
  • any other relevant information:
@Abs-11001
Copy link

Hello, I have also encountered this problem now, the image in preview is inconsistent with the saved image, may I ask if you have solved this problem? thank you.

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