Location:Home > JS special effects code > Selection and screening

photoClip.js mobile phone picture upload and interception plugin

2020-06-25 159views
The clipping plug-in supports gesture. On the mobile device, the double fingers are pinched to zoom. The rotation of the two fingers can be rotated 90 degrees each time according to the rotation direction. On the PC device, the mouse wheel is zoomed, and each double-click rotates 90 degrees clockwise. Gesture supported clipping plug-in {number} width the width of the intercepted area {number} height the height of the intercepted area {string} file the selector of the < input type = file > control or the DOM object {string} view to display the container of the captured image or the DOM object {string} OK confirm the selector of the screenshot button or the DOM object {string} outputtype Specify the image type, and you can choose "JPG" and "PNG". Whether the {Boolean} strictsize is cut strictly according to the width and height of the intercepted area. The default is false {function} loadstart to start loading the callback function. {function} loadcomplete loads the completed callback function. {function} LoadError the callback function that failed to load. {function} clipfinish trims the completed callback function.