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:
mb863 2010-07-07 14:51:44 +00:00
parent a007e9d1a7
commit 717e09e2cd

View file

@ -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
});