receptionkit
receptionkit copied to clipboard
Rotate captured image physically
👋
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?