champloo11 / ng-easy-image-crop

Angular Directive for Easy Server-Side Image Cropping. Handles both original image and scaled image dimensions.
18 stars 3 forks source link

Angular Easy Image Crop

Angular directive for selecting an area within an image to crop. Useful for gathering rectangular data (represented as topLeftX, topLeftY, width, height).

Supports

Options / Bindings

<div image-crop 
    aspect-ratio="'{int}/{int}'" 
    img-src="https://github.com/champloo11/ng-easy-image-crop/raw/master/{string}" 
    img-load="{string}"
    display-height="{int}" 
    display-width = "{int}"
    scaled-height="{int}" 
    scaled-width="{int}" 
    scaled-top="{int}" 
    scaled-left="{int}" 
    style="position:relative;">
</div>