-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
support for image orientation #764
Conversation
@rs could you take a look at this? I'm a bit concerned about what this could break. |
Looks good |
Ok, merging. Let's see how this goes. Thanks @n13 |
support for image orientation
awesome. fingers crossed ;) |
@n13 could you please take a look at those crashes? |
Yes but not right now. Tomorrow. On Thu, Jul 17, 2014 at 4:37 PM, Bogdan Poplauschi
|
Got a fix for this - apparently imageSource can be NULL. That's not in the Apple docs, but Apple's own demo code is checking for NULL. Sigh. |
Created a new pull request. Let me know if there's anything else I can do. |
@n13 we have a limited amount of unit tests, we are working on increasing this coverage. I don't think we have images we know that can cause this crash. |
For what it's worth, I ran into this crash on 3.7.0, while rapidly scrolling a tableview containing UIImageViews, each of which was requesting a load from SDWebImage. I ended up at this stack trace :
By this point, Is it a race condition where one thread finishes downloading & calls |
Actually, I can reproduce this pretty easily if I put a Possibly |
@jdelStrother could you please check with |
Yeah, 3.7.1 fixes the crash, though you get " ImageIO: CGImageSourceCreateWithData data parameter is nil" in the log. Still slightly concerned about race conditions in the latter half of |
Hmm. You might be right, that a race condition still happens there. I'll open a new issue for that. |
It seems that this code is out of date. See the test for that: https://github.com/recurser/exif-orientation-examples (Just copy the image urls, uncomment that calculation of image EXIF orientation and run) I'd suggest to remove this code to make ImageIO coder more clear and performent. |
If the code can be removed now, I am all for that. |
fix for issue #316