Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image auto rotating while Applying filter #6

Open
varunempire opened this issue Jan 27, 2017 · 7 comments
Open

Image auto rotating while Applying filter #6

varunempire opened this issue Jan 27, 2017 · 7 comments

Comments

@varunempire
Copy link

While applying filter to a camera image, image gets auto rotated.

@csurbier
Copy link

csurbier commented Feb 1, 2017

same problem.

@choutiy
Copy link

choutiy commented Feb 14, 2017

same problem

1 similar comment
@mattcoelho
Copy link

same problem

@LuckyStarProg
Copy link

Same problem!
Fix it by replacing line:
let filteredImage = UIImage(cgImage: outputCGImage!)

with line:
let filteredImage = UIImage(cgImage: outputCGImage!, scale: image.scale, orientation: image.imageOrientation)

@sloane-shark
Copy link

checking in with this problem as well, @LuckyStarProg what type of object was "image" referring to in your fix?

@makomori
Copy link
Owner

makomori commented Mar 2, 2017

I'm sorry for the inconvenience guys. This happens when I try to apply filter to image which width and height are different. I'll investigate what causes this error. I appreciate pull requests if you fix this issue! Thank you 😄

@sammy-SC
Copy link

sammy-SC commented Mar 3, 2017

@matthewess I was experiencing same issue, my image was referring to an image picked by UIImagePickerController if that answers your question.

@LuckyStarProg approach solved the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants