Angular File Download, jCrop and Rotation

I use this angular file loader directive (with changes): http://nervgh.imtqy.com/pages/angular-file-upload/examples/image-preview/ .

I managed to get the source and redraw the image so that it was larger. One of my requirements is that the user should be able to crop and rotate this image.

I planned to use jCrop, but I can't get it to work, and I'm at a loss. The jcrop box appears in HTML but has a width and height of 0.

My code is here: http://plnkr.co/edit/bC3g58ZdTGGJeoueipnQ?p=preview

Anyone have suggestions on what I can do to make it work?

+4
source share
1 answer

My colleague solved my problem and I hope this helps others!

https://github.com/LukeMason/angular-img-editor

+3
source

Source: https://habr.com/ru/post/1534916/


All Articles