maxiruani / mr-image Goto Github PK
View Code? Open in Web Editor NEWSimple image select, crop and draw Angular directive.
Home Page: http://maxiruani.github.io/mr-image/
License: MIT License
Simple image select, crop and draw Angular directive.
Home Page: http://maxiruani.github.io/mr-image/
License: MIT License
iam using image-selector. After adding all selection in an image i want to edit and delete some added selections through image only. means want to edit and delete by clicking the selected area.
any suggestions is helpful to me
Thank you
I used only mr-image-selector directive. When I change coords in 'mr-model', I want to see new position of crop. But it's no work. Could you help me?
http://plnkr.co/edit/7IFgfB?p=preview
I need to draw a canvas after user uploads the picture. So i have to give image on run time. The following code is not working
$scope.image = { src: $scope.file, maxWidth: 938 };
Can somebody help me out on this?
so, in my work i need crop proportional image, do you have a example using mr image for this?
Is it possible to have the base64 cropped image in jpg encoding?
I am stuck using this in my web application. Its not supported in IE 11. Any solution for IE 11?
Markup:
<button ng-click="toggle()">Toggle image</button>
<button ng-click="crop()">Crop</button>
<div mr-image mr-max-width="600" mr-src="img.src" mr-selector="selector"></div>
Controller:
$scope.selector = {};
$scope.img = {src: "foo/bar.jpg"}
$scope.crop = function() {
$scope.cropped = $scope.selector.crop();
console.log($scope.cropped);
}
$scope.toggle = function() {
$scope.img.src = "foo/baz.jpg"
}
Steps to reproduce:
You'll see that the 2nd crop is from the image 1.
Tested your demo page on IE 11 and it's not working, any idea why?
Is it possible to crop image using canvas instead of image?.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.