Skip to content

michael-mcanulty/rotate-angular-img-cropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rotate-angular-img-cropper

Rotates the source image in angular-img-cropper.

Requirements

  • Modern Browser supporting <canvas>

  • angular-img-cropper on GitHub.

Installation

Download

  • Download rotate-angular-img-cropper files from GitHub.

Or

  • Install with Bower
bower install rotate-angular-img-cropper

Add dependency

Add the image cropper module as a dependancy to your application module:

angular.module('myApp', ['rotate-angular-img-cropper']);

Rotate Button

Add two additional attributes to the <canvas>

with the image-cropper attribute.

  • btn-class = "..."

  • btn-glyph = "..."

  • rotate = "true"

Add your custom button class, or use Twitter bootstrap. Also, pick an icon such as twitter's glyphicon, or FontAwesome like below:

 ...btn-class="btn btn-default btn-sm" btn-glyph="fa fa-repeat" rotate="true"></canvas>

Loading Spinner

Must include FontAwesome to use the loading Spinner

About

Rotates the source image in angular-img-cropper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published