Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6945997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:30:29+00:00 2026-05-27T13:30:29+00:00

I am using JCrop plugin to crop image, things are working good with following

  • 0

I am using JCrop plugin to crop image, things are working good with following code. i.e. User can able to select area of image to crop.

But my question is how can i pre-define image size box so that user can move the box to select image and when they click on corp button thumbnail of that selected area is crop.

For example: Visit this link http://deepliquid.com/projects/Jcrop/demos.php?demo=advanced
Now Select a part of image and only check “Selection can be moved”, deselect all other checkbox.

I want to know how can i generate JCrop JQuery code for only “Selection can be moved” option, so that i can select only that part of image to generate thumbnail.

Thank you.

<script type="text/javascript">
  jQuery(document).ready(function() {
    jQuery('#imgCrop').Jcrop({
      onSelect: storeCoords
    });
  });

  function storeCoords(c) {
    jQuery('#X').val(c.x);
    jQuery('#Y').val(c.y);
    jQuery('#W').val(c.w);
    jQuery('#H').val(c.h);
  };

</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:30:30+00:00Added an answer on May 27, 2026 at 1:30 pm
    $(function() {
    $('#img').Jcrop({            
    onSelect:  storeCoords, 
    onChange: storeCoords            
    });
    
    function storeCoords(c) {jQuery('#X').val(c.x);jQuery('#Y').val(c.y);jQuery('#W').val(c.w);jQuery('#H').val(c.h);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to crop the image using JQuery Jcrop plugin with Java Stuff,
i am using jcrop to crop pictures on my websites. user can have any
I want to crop an image at the server side (I am using 'JCrop'
I am working on a Codeigniter app that uses JCrop to crop the user's
I'm trying to develop image crop using JQuery. I use ajax to upload the
I'm using jcrop to crop my photos and need to send the current values
I am using the Jcrop plugin for jQuery for photo manipulation. I finally have
I am using Jcrop on an image that is resized with css for uniformity.
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
I am using the jQuery plugin Jcrop. I have an issue with one of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.