Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 2 more options. #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ I'm attempting to make a self-contained AngularJS Directive which will allow you
* max-size (integer) - max size of the image, in pixels
* shape (string) - the cropping guideline shape (circle/square)
* step (bound integer) - the variable which dictates which step the user will see (used for resetting purposes)
* safe-move(string true/false) - allow moving the image under the cropping area without restrictions
* fill-color(string color name / HEX) - the color to fill with the empty space (used with safe-move);
* src (bound Blob or base64 string) - scope variable that will be the source image for the crop
* result (bound string) - the variable which will have the resulting data uri bound to it
* result-blob (bound Blob) - the variable which will have the resulting data as a Blob object
Expand All @@ -40,6 +42,8 @@ I'm attempting to make a self-contained AngularJS Directive which will allow you
data-width="150"
data-shape="square"
data-step="imageCropStep"
data-safe-move='true'
data-fill-color="red"
src="imgSrc"
data-result="result"
data-result-blob="resultBlob"
Expand Down
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "2.0.0",
"homepage": "http://andyshora.com/angular-image-cropper.html",
"authors": [
"Andy Shora <[email protected]>"
"Andy Shora <[email protected]>",
"Stefan Hariton"
],
"description": "A better way to crop images client-side using AngularJS",
"main": [
Expand Down
Loading