Open sberkeo opened 7 months ago
@sberkeo hey there, the onExtractImage should be under the ColorMatrix
like this:
<ColorMatrix onExtractImage={({nativeEvent}) => { console.info('onExtractImage', nativeEvent); setFilterImageURI(nativeEvent.uri); }}
and then on event filter event, it will generate a temp file, you can log like this LOG onExtractImage {"uri": "file:///data/user/0/com.propershot/cache/tmp3659330855580970101.rnifk.png"}
I could not fully understand the documentation and achieve success. cssgram filters are running successfully and being extracted. For the color matrix, I change values such as brightness and contrast in the image with the @react-native-color-matrix-image-filters library. It was successful in the preview, but when I tried to extract the image with the @react-native-image-filter-kit library, it ignored the color matrix. I decided to completely switch back to concatcolorMatrix in @react-native-image-filter-kit, but this time I'm getting an error. [Invariant Violation: Color matrix matB should be an array with 20 elements.]. I would be very happy if anyone could show me the right way. I need to make changes to cssgram filters and color matrix and extract the image.
const SelectedFilterComponent = FILTERS[selectedFilterIndex].filterComponent;
@iyegoroff @xzilja @kaidoj @TrebuhD @HarshitMadhav