Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dsalvagni/cropper

A simple way to crop your images into your web application.
https://github.com/dsalvagni/cropper

Last synced: 19 days ago
JSON representation

A simple way to crop your images into your web application.

Awesome Lists containing this project

README

        

Cropper
===
Just a jQuery plugin to crop your images.

How To
===

Basic



$("#cropper").cropper({
imageOriginal : imagem,
onsave : function(finalFile) {
$('#finalImageSample').html('');
}
});

Defaults

var defaults = {
width : 200,
height : 200,
aspectRatio : false,
imageOriginal : null,
imageFinal : null,
getWH : 'getWH.php',
previewFile : 'preview.php',
wImg : 0,
hImg : 0,
buttons : { save: "Save", cancel:"Cancel", preview:"Preview", edit:"Edit", original:"Use Original File"},
onsave : function(finalFile) {},
oncancel : function(finalFile) {}
};