Skip to content

Rotate captured image physically聽#36

Description

@alavers

馃憢

It looks like images captured from ReceptionKit are rotated via exif metadata here. Unfortunately Slack does not obey these tags, and displays portrait images as 90 degrees rotated.

According to https://developer.apple.com/library/archive/qa/qa1744/_index.html it might be possible to receive image buffers that are already rotated to the correct orientation:

AVCaptureVideoDataOutput clients may receive physically rotated CVPixelBuffers in their -captureOutput:didOutputSampleBuffer:fromConnection: delegate callback. All 4 AVCaptureVideoOrientation modes are supported, and rotation is hardware accelerated. To request buffer rotation, a client calls -setVideoOrientation: on the AVCaptureVideoDataOutput's video AVCaptureConnection.

WDYT?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions