Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dsalvagni/cropper
- Owner: dsalvagni
- Created: 2012-09-10T22:34:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-06T19:25:39.000Z (over 10 years ago)
- Last Synced: 2023-03-29T03:56:37.756Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 898 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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) {}
};