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

prevent creation of _UIAnimatedImage #71

Closed
rounak opened this issue Mar 23, 2015 · 5 comments
Closed

prevent creation of _UIAnimatedImage #71

rounak opened this issue Mar 23, 2015 · 5 comments

Comments

@rounak
Copy link

rounak commented Mar 23, 2015

I know that this is probably unrelated to FLAnimatedImage, but I thought you might be able to help me out. I'm downloading gifs from the network, and they have a large file size, so I just want them to be plain old UIImage that take up minimum RAM.

What's happening though is that I'm getting _UIAnimatedImage in the imageview which are presumably being animated by the system (I'm using an FLAnimatedImageView). This baloons up memory usage(>500MB), causing my app to crash.

Do you have any pointers as to how to disable either the creation of _UIAnimatedImage or stopping the animation? Any methods I can set a break point on to track this? Thanks. (FWIW, SDWebImage is responsible for creating UIImages out of network data.)

Happy to provide more info.

@caughtinflux
Copy link
Contributor

This is definitely the wrong place to be asking, but your issue is that SDWebImage is automatically creating the animated UIImage from the remote data.

@rounak
Copy link
Author

rounak commented Mar 23, 2015

Yeah I just figured that out. Apologies for posting that here.

@rounak rounak closed this as completed Mar 23, 2015
@rounak
Copy link
Author

rounak commented Mar 23, 2015

welp. looks like there's no official way to disable GIF creation. Didn't really want to fork.

@raphaelschaad
Copy link
Collaborator

The fine people over at SDWebImage are looking into replacing that bit with FLAnimatedImage: SDWebImage/SDWebImage#945

Here the relevant thread on FLAnimatedImage discussing the strategy:
#11

I think it's mostly on me to bang the uiimage-subclass branch (highly experimental, pushed a few weeks ago) in shape, then we can start integration, which would solve your problem.

@kean
Copy link
Contributor

kean commented Mar 24, 2015

DFImageManager already features FLAnimatedImage integration. It has its own UIImage subclass @interface DFAnimatedImage : UIImage. I'm looking forward to replace it with FLAnimatedImage implementation.

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

4 participants