GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Rotation issue on capturePhotoAsImageProcessedUpToFilter

Open powellmark opened this issue 14 years ago • 5 comments

When taking a picture with GPUImageStillCamera in landscape mode the resulting processedImage is incorrectly rotated. Portrait mode appears to be fine.

powellmark avatar Jul 29 '12 20:07 powellmark

Just ran into this too. Do you have a solution?

peterhwong avatar Aug 02 '12 22:08 peterhwong

Not yet. I'm a bit overwhelmed with the number of problems handling device orientations right now (especially with GPUImageStillCamera), haven't gotten to this yet.

powellmark avatar Aug 03 '12 21:08 powellmark

Solved this by modifying GPUImageStillCamera.m to use:

UIImage *filteredPhoto = [finalFilterInChain imageFromCurrentlyProcessedOutputWithOrientation:UIImageOrientationUp];

instead of

UIImage *filteredPhoto = [finalFilterInChain imageFromCurrentlyProcessedOutput];

Probably not a good fix for the library, but works for my app.

powellmark avatar Aug 07 '12 15:08 powellmark

This worked for me too. Thanks powellmark.

AndyRawson avatar Oct 19 '12 05:10 AndyRawson

It worked for me too!

servatti avatar Aug 13 '13 20:08 servatti