Skip to content

The difference between preview and result obtained. #419

@mastalsbota

Description

@mastalsbota

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions