Sharafudheen KK

Results 9 comments of Sharafudheen KK

Hi @RalphMarvin You can use the following code to apply the filter on a file ``` Image applyFilterOnImageFile(Filter filter, File src) { Image image = decodeImage(src.readAsBytesSync()); var pixels = image.getBytes();...

You are passing the selected filter to this method.

@Ozgun137 You can use the bytes from bitmap to apply the filter as following ``` var bytes = image.getBytes(); filter.apply(bytes, image.width, image.height); ```

@jimmyff Thanks for the suggestion, I am planning to implement the same in the very next release. If you already worked out something, please send a PR. Thanks

@Mangielijah Thanks for finding out the issue. From the comments of the other issue, I assume you fixed it by creating a worker for the compute operation and kill it...

@Mangielijah Thanks for the fix. It will be very helpful if you can create a pull request with the changes. Thanks in advance

Since these are time-consuming processes, I don't recommend using it in real-time video. You can apply the filter on each frame of the video and render it in a video...

I hope this will help you ``` void applyFilterOnFile(Filter filter, String src, String dest) { Image image = decodeImage(File(src).readAsBytesSync()); var pixels = image.getBytes(); filter.apply(pixels, image.width, image.height); Image out = Image.fromBytes(image.width,...

Refer https://github.com/skkallayath/photofilters/blob/master/test/test_utils.dart