Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

area selection on image using javascript

<html>
    <head>
        <title>Image Processs</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-jcrop/0.9.15/css/jquery.Jcrop.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-jcrop/0.9.15/js/jquery.Jcrop.js"></script>
        </head>
    <body>
        <img src="https://i.stack.imgur.com/UYYqo.jpg" alt="" id="image">
        <script>
            $(document).ready(function(){
                $('#image').Jcrop({
                    onSelect: function(c){
                        console.log(c);

                        console.log(c.x);
                        console.log(c.y);
                        console.log(c.w);
                        console.log(c.h);
                    }
                })
            })
        </script>
    </body>    
    </html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: convert matrix string to matrix javascript 
Javascript :: req.body is empty express js 
Javascript :: js recursive fetch 
Javascript :: regex match between quotes without escape 
Javascript :: lexical environment in javascript 
Javascript :: get contents between tags javascript 
Javascript :: how to push in object in javascript 
Javascript :: jest called times 
Javascript :: set map to local storage javascript 
Javascript :: create own rules jquery 
Javascript :: axios post query params 
Javascript :: next js typescript 
Javascript :: adding cors parameters to extjs ajax 
Javascript :: react js charts with camvas 
Javascript :: react native refresh on pull down 
Javascript :: pop-under window before current page 
Javascript :: convert angular HTTP to Native HTTP in Ionic 
Javascript :: leaflet 
Javascript :: vue file 
Javascript :: run node app locally 
Javascript :: ckeditor ignore contenteditable 
Javascript :: how to get keys in an object javascript 
Javascript :: lite youtube embed react 
Javascript :: usecontext 
Javascript :: slice array of objects javascript 
Javascript :: json parse 
Javascript :: react this.state 
Javascript :: Alpine.js: button using @click function not working 
Javascript :: addition of time in javascript 
Javascript :: javascript forloop 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =