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

Issue with cache cost calculation for UIImage created from Core Image #607

Open
rounak opened this issue Aug 4, 2021 · 1 comment
Open

Comments

@rounak
Copy link
Contributor

rounak commented Aug 4, 2021

We are using PINRemoteImage's processorBlock to download an image from a URL, and then processing it using Core Image. We return UIImage(ciImage: processedCoreImage) in the processorBlock.

However we're hitting an NSAssert in PINRemoteImage during cache cost calculation:

NSAssert(container.image == nil || imageRef != NULL, @"We only cache a decompressed image if we decompressed it ourselves. In that case, it should be backed by a CGImageRef.");

It seems like this only supports UIImage that is CGImage backed, which is not the case with Core Image. Any help or guidance would be appreciated, thanks!

@noorbhatia10
Copy link

Hey @rounak , did you find any solution for this?

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

2 participants