ByCropper - Image cropper script
Examples
Example 1: Default options
HTML
- <img src="eiffeltower.jpg" id="bycropper" />
Javascript
- var myCropper = new ByCropper();
Output
Change strict ratio to: Ratio = 4/3 | Ratio = 16/9 | Ratio = 2/3
Change non-strict ratio to: Ratio = 4/3 | Ratio = 16/9 | Ratio = 2/3
Set special ratio: Ratio = Picture | Ratio = Default | No Ratio
Example 2: Color and Opacity customization, min/max size
HTML
- <img src="eiffeltower.jpg" id="bycropper_custom" />
Javascript
- myCropperCustom = new ByCropper('bycropper_custom', null, {
- minWidth: 190,
- maxWidth: 380,
- minHeight: 110,
- maxHeight: 220,
- maskColor: "#203060",
- maskOpacity: 0.96
- });
Output
Coming Soon ...
A PHP script processing the image will be added shortly...