jameswomack / iOS-Image-Filters

High-level CIImage-based image filtering on iOS 6+ using CoreImage & raster graphic overlays
http://womack.io
MIT License
132 stars 27 forks source link

When I apply a filter to an image, it seems to store that image somewhere. Because when I try to apply a filter to a different image, it returns the first image it applied a filter to. #4

Closed JGVB closed 9 years ago

JGVB commented 10 years ago

This can be seen in the example project if you add self.originalImage = [UIImage imageNamed:@"toycamera.png"]; In the first line of the revert function. Apply the filter to the original flower image, then click revert and apply the filter to the new image. The original image pops up filtered. Any idea why this happens?

JGVB commented 10 years ago

Seems to have to do with the cache. I'll try clearing it.

JGVB commented 10 years ago

Apparently the cache was saving only one image per filter name. So I added the image description to the filter name (creating the key for the cache) and all works well. Must have been like this because because the example app had only one picture.

jameswomack commented 10 years ago

Hello @Jvanbev. Is there a pull request you can open to make this better for others as well?

jameswomack commented 9 years ago

The caching mechanism has been removed in 0.3.0.