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

Rotate captured image physically #36

Open
alavers opened this issue Nov 12, 2018 · 0 comments
Open

Rotate captured image physically #36

alavers opened this issue Nov 12, 2018 · 0 comments
Assignees

Comments

@alavers
Copy link

alavers commented Nov 12, 2018

👋

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?

@AcroMace AcroMace self-assigned this Nov 15, 2018
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