Build a cool Image Editor with CSS and Caman.js

Making an image editor,does not require knowledge of heavy libraries or pixel manipulation.Its very easy to do,using Caman.js and simple CSS and HTML.

This effects can easily be created with a few lines of code.

Getting Caman.js library:

npm (NodeJS): npm install caman

bower (Browser):bower install caman

Or get cdn link from:

Setting the UI:

This a sample layout

The above UI, has a <canvas></canvas> defined.And the buttons as shown in the image.

Linking Caman.js to the UI

Applying effects to the image:

The above code snippet,applies the effect vintage to the image.

Now you can apply the various effects to the image, just change the name of effect to, like…


To Remove effects from the image.

And you have a ready to use cool image editor.

Hope you enjoyed this. Here is the sample code,feel free to try and play around it .

Deep Learning enthusiast | Adobe WIT Scholar'21

Deep Learning enthusiast | Adobe WIT Scholar'21