Example of jQuery Avatar cropping tool jcrop usage (with demo and demo source code download) _ jquery

Source: Internet
Author: User
This article mainly introduces the usage of the jQuery Avatar cropping tool jcrop, and analyzes the jQuery Avatar cropping tool jquery in the form of examples. jcrop. the specific usage tips of js are provided with the complete demo source code for readers to download. If you need it, you can refer to the following example to describe the jcrop usage of the jQuery Avatar cropping tool. We will share this with you for your reference. The details are as follows:

Currently, most popular Avatar cropping tools are flash and jquery. I personally think it is better to use jquery, because the code is carefully studied and can basically understand what is going on. It is easier to change it.

For an example, see the jcrop demo, which is modified by the root jcrop example. Add the following two features:

1, center display, and can be dragged to change the size of the clip
2. The size of the previewed image is proportional to the size of the root drag.

Below is the js Code, which is simple Encapsulation

   
    Jcrop image dragging  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.