receptionkit icon indicating copy to clipboard operation
receptionkit copied to clipboard

Rotate captured image physically

Open alavers opened this issue 6 years ago • 0 comments

👋

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?

alavers avatar Nov 12 '18 15:11 alavers