Sunday, October 4, 2015

JQuery: Define crop section area of image

2:10 AMSunday, October 4, 2015
If you want to crop image then use JQuery Crop plugin. Download JQuery Crop Plugin from Here. Here you get two file, first is jquery.JCrop.js and second one is jquery.Jcrop.css file. Both of these files are used to set the crop section area on image. Lets check the example of Jquery crop section area of image.

<!DOCTYPE html>
<html xmlns="">
    <script src=""></script>
    <script src="jquery.Jcrop.js"></script>
    <link href="jquery.Jcrop.css" rel="stylesheet" />
        $(function () {
                onSelect: croparea


        function croparea(c) {


        <img src="image/12.PNG" id="cropimage"/>
        <input type="hidden" id="coordinate_x" />
        <input type="hidden" id="coordinate_y" />
        <input type="hidden" id="coordinate_w" />
        <input type="hidden" id="coordinate_h" />



Code generate the following output

JQuery: Define crop section area of image

Protected by Copyscape Online Copyright Protection Software


Post a Comment

Toggle Footer