Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 691 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 691 Bytes

Image-Editor

Mini image editor using CamanJS

What is CamanJS?

CamanJS is (ca)nvas (man)ipulation in Javascript. It's a combination of a simple-to-use interface with advanced and efficient image/canvas editing techniques.

Usage

Javascript

Caman('#my-image', function () { this.brightness(10); this.contrast(30); this.sepia(60); this.saturation(-30); this.render(); });

HTML data attribute

<img data-caman="brightness(10) contrast(30) sepia(60) saturation(-30)" data-caman-hidpi="/path/to/image@2x.jpg" src="path/to/image.jpg"

Screenshot:

Screenshot