Set an initial selection area of 115 by 115 pixels. Added minimum (115 by 115 pixels) and maximum (300 by 300 pixels) sizes for cropping images
This commit is contained in:
parent
a007e9d1a7
commit
717e09e2cd
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@
|
|||
var jcrop_api = $.Jcrop('#cropbox',{
|
||||
onChange: showPreview,
|
||||
onSelect: showPreview,
|
||||
setSelect: [ 0, 0, 115, 115 ],
|
||||
minSize: [115,115],
|
||||
maxSize: [300,300],
|
||||
aspectRatio: 1
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue