Giter Site home page Giter Site logo

josevavia / ui-cropper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crackerakiua/ui-cropper

0.0 1.0 0.0 3.56 MB

Image Crop directive for AngularJS

Home Page: http://crackerakiua.github.io/ui-cropper/

License: MIT License

JavaScript 92.98% CSS 2.29% HTML 4.73%

ui-cropper's Introduction

uiCropper

Build Status GitHub release Join the chat at https://gitter.im/CrackerakiUA/ui-cropper

Simple Image Crop directive for AngularJS. Enables to crop a circle, square or rectangle from of an image.

Live demo

Test it yourself, upload or choose an image from url in our amazing Online test suite

or pick a Codepen to play around with it
Codepen: Circle + Chargement Crop
Codepen: Square + Init Url Crop + Maximum rendered image
Codepen: Rectangle Crop
Codepen: Rectangle Crop + Crop info
Codepen: Rectangle With Aspect Crop and Max Init
Codepen: Rectangle + Aspect + Array Crop
Codepen: Rectangle + CSS Crop
Codepen: Different sizes

News

We just moved this lib to new name, before you add it to your please do tests.

Contribution

If you want to contribute, please join our gitter chat.

Installing

Download directly

Download ui-cropper files from GitHub

Bower

bower install ui-cropper

NPM

npm install ui-cropper

Meteor

meteor npm install --save ui-cropper

How to Use

angular.module('app', ['uiCropper'])
.controller(function($scope){
	$scope.myImage = 'https://raw.githubusercontent.com/CrackerakiUA/ui-cropper/master/screenshots/live.jpg';
	$scope.myCroppedImage = ''; // in this variable you will have dataUrl of cropped area.
});
<ui-cropper image="myImage" result-image="myCroppedImage"></ui-cropper>

Documentation

You can checkout all options under our wiki page

License

See the LICENSE file

ui-cropper's People

Contributors

crackerakiua avatar vogloblinsky avatar alexk111 avatar omarciovsena avatar rickerd avatar harshithkashyap avatar einarstubhaug avatar thibserot avatar hotas2k avatar fs02 avatar komachi avatar firstvertex avatar simison avatar thetathaurus avatar mandeepm91 avatar timoperplex avatar francirp avatar neftedollar avatar keycat avatar alexswensen avatar sdeprez avatar mminder avatar ignacio-chiazzo avatar drmikecrowe avatar gitter-badger avatar svencowart avatar evdoks avatar semonte avatar oliversalzburg avatar omichelsen avatar

Watchers

Jose Vázquez Viader avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.