Skip to content

Instantly share code, notes, and snippets.

@Boztown
Created September 23, 2013 22:11
Show Gist options
  • Save Boztown/6677666 to your computer and use it in GitHub Desktop.
Save Boztown/6677666 to your computer and use it in GitHub Desktop.
jCrop center selection
var x = 50;
var y = 50;
var x1 = jQuery('#cropper img').width() - 100;
var y1 = jQuery('#cropper img').height() - 100;
jQuery('#cropper img').Jcrop({
aspectRatio: 1,
setSelect: [ x, y, x1, y1 ]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment