iyegoroff / react-native-image-filter-kit

Various image filters for iOS & Android
MIT License
320 stars 43 forks source link

Filter without rendering #13

Closed miladrasooli closed 4 years ago

miladrasooli commented 5 years ago

Hi , Is there anyway to render an image without rendering the output? I think it's a good feature to export filter APIs

iyegoroff commented 5 years ago

Hi @miladrasooli , something like this is not in the focus right now, but in the future I'll add an ability to save the result of filtering as temporary file.

miladrasooli commented 5 years ago

Thanks for your quick reply, any timeline ?

iyegoroff commented 5 years ago

Maybe in a couple of months.

Bartson commented 5 years ago

Any steps forward? Simple yes or no is enough, I just want to know if I should wait a little more.

iyegoroff commented 5 years ago

No news here. Consider provided options from my comments here - https://github.com/iyegoroff/react-native-color-matrix-image-filters/issues/12

iyegoroff commented 5 years ago

Also if you are interested in contributing to this library you can try to implement file system image caching in addition to existent in-memory caching and return the path to cached image in onFilteringFinish callback. It should be easier to start this feature on Android, because Fresco (which rnifk relies on) already has some file system caching support - https://frescolib.org/docs/caching.html

iyegoroff commented 4 years ago

Filtered image extraction is implemented in v0.7.0

yairopro commented 4 years ago

Hi @iyegoroff

The issue is closed, but I don't see from the doc a way to apply a filter on an image without rendering it + onExtractImage prop.

Is there a function to apply a filter on an image without using a component ?

iyegoroff commented 4 years ago

Probably the closest thing to get "filtering without using a component" is rendering filter component outside of the viewport.