GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Filters rotate image to different orientation

Open DaidoujiChen opened this issue 11 years ago • 6 comments

Hello,

I am tried a simple code in simulator both on ios5.1 and ios6.1. originalImageView to load a bundle image. processImageView output the result.

GPUImagePicture *stillImageSource = [[GPUImagePicture alloc] initWithImage:_originalImageView.image];

GPUImageFastBlurFilter *blurFilter = [[GPUImageFastBlurFilter alloc] init];

[stillImageSource addTarget:blurFilter];
[stillImageSource processImage];

_processImageView.image = [blurFilter imageFromCurrentlyProcessedOutput];

In ios5, the code works fine, like those snapshot below: 2013-07-01 2 59 28 2013-07-01 3 04 24

In ios6, output images rotated different orientation: 2013-07-01 3 07 03 2013-07-01 3 08 08

Is it a known issue? thanks.

DaidoujiChen avatar Jul 01 '13 07:07 DaidoujiChen

Having the same problem here. Any solutions so far?

sarperdag avatar Jul 11 '13 08:07 sarperdag

not yet.

DaidoujiChen avatar Jul 16 '13 06:07 DaidoujiChen

@DaidoujiChen might be a good idea to exclude anime porn from your example images :)

kayzee avatar Jul 19 '13 21:07 kayzee

I had same problem. but I don't know why, I fixed 2 orientations portrait and landscape. I can't fix portrait upside-down and landscape home button left side yet. By the way, here is the code I'm using;

GPUImagePicture *editPic = [[GPUImagePicture alloc]initWithImage:image]; GPUImageCropFilter *rotateFilter = [[GPUImageCropFilter alloc]init]; [editPic addTarget:rotateFilter]; UIImageOrientation orientation = image.imageOrientation; switch(!orientation){ case UIImageOrientationUp: [rotateFilter setInputRotation:kGPUImageRotateRight atIndex:1]; break;

case UIImageOrientationLeft: break;

case UIImageOrientationRight: break;

case UIImageOrientationDown: break;

default: break; }

Ogre02 avatar Sep 04 '13 09:09 Ogre02

I am also getting same issue

tikamsingh avatar Oct 12 '16 10:10 tikamsingh

Is there any update on this?

bkunarola avatar Aug 01 '19 07:08 bkunarola