GPUImage
GPUImage copied to clipboard
Filters rotate image to different orientation
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:
In ios6, output images rotated different orientation:
Is it a known issue? thanks.
Having the same problem here. Any solutions so far?
not yet.
@DaidoujiChen might be a good idea to exclude anime porn from your example images :)
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; }
I am also getting same issue
Is there any update on this?