k-image-crop
v0.2.7
Published
k-image-crop ====
Downloads
11
Readme
k-image-crop
Image crop for Derby.js.
Note: this is the image cropper ui widget; you will have to do the actual file manipulation server side with software like graphicsmagick or imagemagick.
##Demo
https://derby-demos.herokuapp.com/k-image-crop
##Installation
npm install k-image-crop
app.component(require('k-image-crop'));
@import '../../node_modules/k-image-crop'
##Usage
<k-image-crop translate="t" src="{{_page.misc.crop}}" on-submit="cropped()"></k-image-crop>
Localization: translate
attribute is optional. If used, it should point the app.proto.t
translate function in plain string, i.e. in that case it would be just t
as in the example.