'Unable to remove CamanJS filters using the revert() method

I am building a photobooth using Webcam Easy JS for capturing the photo and CamanJS for applying filters. The CamanJS filter presets are working as expected. But I am unable to remove the applied filters.

I used the revert() method but its not removing the filters. It is not throwing any error either.

Here's the codepen

Note: It works fine in codepen but its NOT working locally. Please do copy the code and check in the local environment



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source