{"_id":"jquery-cropper","_rev":"8-39804d845f7b94887399cbe21ae68257","name":"jquery-cropper","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0-alpha":{"name":"jquery-cropper","version":"1.0.0-alpha","keywords":["image","crop","move","zoom","rotate","scale","cropper","cropper.js","cropping","processing","jquery","plugin","jquery-plugin","html","css","javascript","front-end","web","development"],"author":{"url":"http://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"jquery-cropper@1.0.0-alpha","maintainers":[{"name":"fengyuanchen","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/jquery-cropper","bugs":{"url":"https://github.com/fengyuanchen/jquery-cropper/issues"},"dist":{"shasum":"a734d71c7de3695a8b30e55727b197475e840e75","tarball":"https://registry.npmjs.org/jquery-cropper/-/jquery-cropper-1.0.0-alpha.tgz","fileCount":9,"integrity":"sha512-DSI7RBeaLRSz1c2KXj/hft0mAnDG5NGiiaXBr2mZWj8nqcZzUqa94zGgFW+DS+pFSS8WkVtzS2AxW347uRd1CA==","signatures":[{"sig":"MEQCIGHdzebtJy/ICHMxDDRFi/xGcyF4AnVmEt8Jl8mUfB4jAiBNqe4SLdAoWFdEy14JEo/Veu4Ow6gL62olOdQyjO8X2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14353},"main":"dist/jquery-cropper.common.js","files":["src","dist"],"unpkg":"dist/jquery-cropper.js","module":"dist/jquery-cropper.esm.js","gitHead":"27e801147b6544c267b67f1902d902e62306eaba","scripts":{"lint":"eslint src/js --fix","test":"karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm-run-all --parallel watch:*","watch":"rollup -c -m -w","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/jquery-cropper.js -o dist/jquery-cropper.min.js -c -m --comments /^!/","commitmsg":"npm run lint && commitlint -e"},"_npmUser":{"name":"fengyuanchen","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/jquery-cropper.git","type":"git"},"_npmVersion":"5.6.0","description":"A jQuery plugin wrapper for Cropper.js.","directories":{},"_nodeVersion":"9.6.1","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","karma":"^2.0.0","mocha":"^5.0.1","eslint":"^4.18.1","jquery":"^3.3.1","rollup":"^0.56.3","del-cli":"^1.1.0","cropperjs":"^1.3.1","puppeteer":"^1.1.1","uglify-js":"^3.3.12","babel-core":"^6.26.0","karma-chai":"^0.1.0","karma-mocha":"^1.3.0","rollup-watch":"^4.3.1","@commitlint/cli":"^6.1.2","babel-preset-env":"^1.6.1","rollup-plugin-alias":"^1.4.0","rollup-plugin-babel":"^3.0.3","eslint-plugin-import":"^2.9.0","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^2.2.0","rollup-plugin-commonjs":"^8.3.0","eslint-config-airbnb-base":"^12.1.0","karma-rollup-preprocessor":"^5.1.1","@commitlint/config-angular":"^6.1.2","rollup-plugin-node-resolve":"^3.0.3","babel-plugin-external-helpers":"^6.22.0"},"peerDependencies":{"jquery":">= 1.9.1","cropperjs":">= 1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/jquery-cropper_1.0.0-alpha_1519826553828_0.847904105055745","host":"s3://npm-registry-packages"}},"1.0.0-beta":{"name":"jquery-cropper","version":"1.0.0-beta","keywords":["image","crop","move","zoom","rotate","scale","cropper","cropper.js","cropping","processing","jquery","plugin","jquery-plugin","html","css","javascript","front-end","web","development"],"author":{"url":"http://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"jquery-cropper@1.0.0-beta","maintainers":[{"name":"fengyuanchen","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/jquery-cropper","bugs":{"url":"https://github.com/fengyuanchen/jquery-cropper/issues"},"dist":{"shasum":"445999e55a26d83d828acb9567b2bd5b28ccc88e","tarball":"https://registry.npmjs.org/jquery-cropper/-/jquery-cropper-1.0.0-beta.tgz","fileCount":9,"integrity":"sha512-Vhzu/IEkBc5du8PyHZHlhLAKSQTZrCvDSKu4ftFA9T1wnBWpfqqo4jAqI7u+YnLNESfc5uScN/foh+2fZZyMOQ==","signatures":[{"sig":"MEUCIGCED2aB4k+dgLat72g0AnJPGyobkv4SBFJU7C30C0i7AiEAnl5upg7GdqVHDFP0ruPbCSuRdeCGe16xn9SSDdh/Wek=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14467},"main":"dist/jquery-cropper.common.js","files":["src","dist"],"unpkg":"dist/jquery-cropper.js","module":"dist/jquery-cropper.esm.js","gitHead":"3851620dd01af6ff10b19796145da058a434d6ee","scripts":{"lint":"eslint src/js --fix","test":"karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm-run-all --parallel watch:*","watch":"rollup -c -m -w","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/jquery-cropper.js -o dist/jquery-cropper.min.js -c -m --comments /^!/","commitmsg":"npm run lint && commitlint -e"},"_npmUser":{"name":"fengyuanchen","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/jquery-cropper.git","type":"git"},"_npmVersion":"5.6.0","description":"A jQuery plugin wrapper for Cropper.js.","directories":{},"_nodeVersion":"9.6.1","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","karma":"^2.0.0","mocha":"^5.0.1","eslint":"^4.18.2","jquery":"^3.3.1","rollup":"^0.56.3","del-cli":"^1.1.0","cropperjs":"^1.3.2","puppeteer":"^1.1.1","uglify-js":"^3.3.12","babel-core":"^6.26.0","karma-chai":"^0.1.0","karma-mocha":"^1.3.0","rollup-watch":"^4.3.1","@commitlint/cli":"^6.1.3","babel-preset-env":"^1.6.1","rollup-plugin-alias":"^1.4.0","rollup-plugin-babel":"^3.0.3","eslint-plugin-import":"^2.9.0","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^2.2.0","rollup-plugin-commonjs":"^8.3.0","eslint-config-airbnb-base":"^12.1.0","karma-rollup-preprocessor":"^5.1.1","@commitlint/config-angular":"^6.1.3","rollup-plugin-node-resolve":"^3.0.3","babel-plugin-external-helpers":"^6.22.0"},"peerDependencies":{"jquery":">= 1.9.1","cropperjs":">= 1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/jquery-cropper_1.0.0-beta_1520050734222_0.7434809957113593","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"jquery-cropper","version":"1.0.0","keywords":["image","crop","move","zoom","rotate","scale","cropper","cropper.js","cropping","processing","jquery","plugin","jquery-plugin","html","css","javascript","front-end","web"],"author":{"url":"http://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"jquery-cropper@1.0.0","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/jquery-cropper","bugs":{"url":"https://github.com/fengyuanchen/jquery-cropper/issues"},"dist":{"shasum":"a863005f8e1533825f269ff7ee2c2308137d045e","tarball":"https://registry.npmjs.org/jquery-cropper/-/jquery-cropper-1.0.0.tgz","fileCount":9,"integrity":"sha512-ox1zRC1IIlN0sPxqb8TqgmoiEs1USNFfNn1RK6mwXrBdOfJpwqog7ZZVc6Hz/ev03gomDbOs2jXZUgTMBg35xg==","signatures":[{"sig":"MEYCIQDVfDoGL/KYwqzGNtrV37y1RYzeNf49S+Si7bjnjJX6PwIhALvhW4yImkvDn4+h97PeEL6ST9sdb73V7JdmIl1NyQ99","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14506},"main":"dist/jquery-cropper.common.js","files":["src","dist"],"unpkg":"dist/jquery-cropper.js","module":"dist/jquery-cropper.esm.js","gitHead":"62eebeaa50730b3b67e3f56c22bbd937fd3254e1","scripts":{"lint":"eslint src test *.js --fix","test":"karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"rollup -c -m -w","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/jquery-cropper.js -o dist/jquery-cropper.min.js -c -m --comments /^!/","commitmsg":"npm run lint && commitlint -e"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/jquery-cropper.git","type":"git"},"_npmVersion":"5.6.0","description":"A jQuery plugin wrapper for Cropper.js.","directories":{},"_nodeVersion":"9.8.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","karma":"^2.0.0","mocha":"^5.0.5","eslint":"^4.19.1","jquery":"^3.3.1","rollup":"^0.57.1","del-cli":"^1.1.0","cropperjs":"^1.3.4","puppeteer":"^1.2.0","uglify-js":"^3.3.17","babel-core":"^6.26.0","karma-chai":"^0.1.0","karma-mocha":"^1.3.0","rollup-watch":"^4.3.1","@commitlint/cli":"^6.1.3","babel-preset-env":"^1.6.1","rollup-plugin-alias":"^1.4.0","rollup-plugin-babel":"^3.0.3","eslint-plugin-import":"^2.10.0","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^2.2.0","rollup-plugin-commonjs":"^9.1.0","eslint-config-airbnb-base":"^12.1.0","karma-rollup-preprocessor":"^5.1.1","@commitlint/config-angular":"^6.1.3","rollup-plugin-node-resolve":"^3.3.0","babel-plugin-external-helpers":"^6.22.0"},"peerDependencies":{"jquery":">= 1.9.1","cropperjs":">= 1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/jquery-cropper_1.0.0_1522563767654_0.3859667262014732","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"jquery-cropper","version":"1.0.1","keywords":["image","crop","move","zoom","rotate","scale","cropper","cropper.js","cropping","processing","jquery","plugin","jquery-plugin","html","css","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"jquery-cropper@1.0.1","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/jquery-cropper","bugs":{"url":"https://github.com/fengyuanchen/jquery-cropper/issues"},"dist":{"shasum":"6ba9faf1c2c86c0ac3c648d40554ba53673113cf","tarball":"https://registry.npmjs.org/jquery-cropper/-/jquery-cropper-1.0.1.tgz","fileCount":9,"integrity":"sha512-KGlY8b0IJQi2Bxe3lqMKmd5Z2Ce4GrnDE5O8Iciza9xCzXISkL6EqX/jFHwnLL1H6Q4FGjoRguuv3lxezsbKJQ==","signatures":[{"sig":"MEUCIFo1FzPrYyFURxRzcX1m3BdqBzqhdAOrcQdB649YdheAAiEAoi7XlznMuaVqOSYBl8032sRWMkURU6pj1TXvUS2ec1M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15522,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqtHZCRA9TVsSAnZWagAAP6wP/jsV0YK5v+Wzd8e2OQQo\n8XGs2Rea26wCZpNhYLt0fBIDbKd3rjNWwX4XTXej+QiErEHvyN7AeRIuJYf4\nMLi6ZCXb1J1Ko8L7U5w8LSXKLBAcUUBO+IPWTcIgVcboKSLiHvJRw39Y+an5\nyv8d5cNafEYORUFsheWAdijhtFhzpoIJPoR4d+B0hCglz2+mS+qTIScN/40Z\nYZQUjkKrWRXZbk/qwLbsbRQKjnMWe2C9TFW5yDkoVmxNm83qEsDJ8fWPApPh\niS6ERcJvivYtOO6hzkzlQgjK2n6cqi50zujkoqfrDxz9+y9mMLfjTG4vkS7Y\nQ/SDGl6cuQSJfQ7Ep1N4UhJ5eLUayLt8QhKkU+oIpSzYNyLsykdHXsOjhwz5\nKm971OANueJTJJgIcUFl7uTpZJi26us4PgSpJFSjeWrm0ir4PcUorUTcqMzU\ng/CBd0j47h74CDXVg2pAVjLolx/qiy4XcLc3L+gkpjJO6dPPCMkEE204KJxK\nWpUPyKX/aWoaazpbFqxaqYiLGAP09OsOfBcwCz5cE81XWPEuFZDzjTJ6Cm/E\nq8U70iA4vAyKuii27r+o2JLhrElkb8wqUARFolRc5TTUZXEQfFKcoqhSwsNq\njZz8faKfsiYlBjKA3QKS+DMKQobnJQ2rNTKswqrr7RxWHAKnya7lr2+9Ksve\n/f5w\r\n=9m8d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/jquery-cropper.common.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"module":"dist/jquery-cropper.esm.js","browser":"dist/jquery-cropper.js","gitHead":"70867208c16fbf767802aa61de370d72ed6e68ba","scripts":{"lint":"eslint src test *.js --fix","test":"karma start","build":"rollup -c","clear":"del-cli dist","start":"rollup -c -m -w","codecov":"cat coverage/lcov.info | codecov","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/jquery-cropper.js -o dist/jquery-cropper.min.js -c -m --comments /^!/"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/fengyuanchen/jquery-cropper.git","type":"git"},"_npmVersion":"6.10.3","description":"A jQuery plugin wrapper for Cropper.js.","directories":{},"lint-staged":{"{src,test}/**/*.js|*.conf*.js":["eslint --fix","git add"]},"_nodeVersion":"10.9.0","browserslist":["last 2 versions","> 1%","not ie <= 8"],"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","husky":"^3.0.9","karma":"^4.4.1","mocha":"^6.2.2","eslint":"^6.5.1","jquery":"^3.3.1","rollup":"^1.25.0","codecov":"^3.6.1","del-cli":"^3.0.0","cropperjs":"^1.5.6","puppeteer":"^1.20.0","uglify-js":"^3.6.2","karma-chai":"^0.1.0","@babel/core":"^7.6.4","karma-mocha":"^1.3.0","lint-staged":"^9.4.2","rollup-watch":"^4.3.1","create-banner":"^1.0.0","@commitlint/cli":"^8.2.0","@babel/preset-env":"^7.6.3","rollup-plugin-alias":"^2.1.0","rollup-plugin-babel":"^4.3.3","eslint-plugin-import":"^2.18.2","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^5.2.0","karma-chrome-launcher":"^3.1.0","rollup-plugin-commonjs":"^10.1.0","eslint-config-airbnb-base":"^14.0.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-node-resolve":"^5.2.0","@commitlint/config-conventional":"^8.2.0","karma-coverage-istanbul-reporter":"^2.1.0"},"peerDependencies":{"jquery":">=1.9.1","cropperjs":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/jquery-cropper_1.0.1_1571475928523_0.32115392410542487","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"jquery-cropper","description":"A jQuery plugin wrapper for Cropper.js.","version":"1.0.2","main":"dist/jquery-cropper.common.js","module":"dist/jquery-cropper.esm.js","browser":"dist/jquery-cropper.js","scripts":{"build":"rollup -c","clean":"del-cli dist","compress":"uglifyjs dist/jquery-cropper.js -o dist/jquery-cropper.min.js -c -m --comments /^!/","lint":"eslint src test *.js --fix","release":"npm run clean && npm run lint && npm run build && npm run compress && npm test","start":"rollup -c -m -w","test":"karma start"},"repository":{"type":"git","url":"git+https://github.com/fengyuanchen/jquery-cropper.git"},"keywords":["image","crop","move","zoom","rotate","scale","cropper","cropper.js","cropping","processing","jquery","plugin","jquery-plugin","html","css","javascript","front-end","web"],"author":{"name":"Chen Fengyuan","url":"https://chenfengyuan.com/"},"license":"MIT","bugs":{"url":"https://github.com/fengyuanchen/jquery-cropper/issues"},"homepage":"https://fengyuanchen.github.io/jquery-cropper","devDependencies":{"@babel/core":"^7.26.9","@babel/preset-env":"^7.26.9","@commitlint/cli":"^8.3.6","@commitlint/config-conventional":"^8.3.6","babel-plugin-istanbul":"^5.2.0","chai":"^4.5.0","create-banner":"^1.0.0","cropperjs":"^1.6.2","del-cli":"^3.0.1","eslint":"^6.5.1","eslint-config-airbnb-base":"^14.2.1","eslint-plugin-import":"^2.31.0","husky":"^3.1.0","jquery":"^3.7.1","lint-staged":"^9.5.0","karma":"^4.4.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.2.0","karma-coverage-istanbul-reporter":"^2.1.1","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-rollup-preprocessor":"^7.0.8","mocha":"^6.2.3","puppeteer":"^1.20.0","rollup":"^1.32.1","rollup-plugin-alias":"^2.1.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","uglify-js":"^3.19.3"},"peerDependencies":{"cropperjs":">=1.0.0 <2.0.0","jquery":">=1.9.1"},"browserslist":["last 2 versions","> 1%","ie >= 9"],"commitlint":{"extends":["@commitlint/config-conventional"]},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"{src,test}/**/*.js|*.conf*.js":["eslint --fix","git add"]},"_id":"jquery-cropper@1.0.2","gitHead":"afd5af36406f8645b019e113c4c5c4d1b735ea9c","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-UHjQNcuBoQspdVNx9JwA3bEFCo4crQ0RWL6PgFcfvq7Tx3n3WFzueoNHiRhsyC2eujZF8Udmts9Yqo9YJgnxmA==","shasum":"ce249d89935978d463e7b443607afa080f27fefd","tarball":"https://registry.npmjs.org/jquery-cropper/-/jquery-cropper-1.0.2.tgz","fileCount":8,"unpackedSize":15164,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAhUpJWM7kBt7ts1q1T6qq8QejsoqReZ+wPx81ScyZioAiBc+dx+mY4CndSmzBYNLd4Zr1+lTi8osg01Q1CwGEl/uA=="}]},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"directories":{},"maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jquery-cropper_1.0.2_1741423767562_0.32869908463766784"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-28T14:02:33.827Z","modified":"2025-03-08T08:49:27.928Z","1.0.0-alpha":"2018-02-28T14:02:33.947Z","1.0.0-beta":"2018-03-03T04:18:54.354Z","1.0.0":"2018-04-01T06:22:47.730Z","1.0.1":"2019-10-19T09:05:28.685Z","1.0.2":"2025-03-08T08:49:27.737Z"},"bugs":{"url":"https://github.com/fengyuanchen/jquery-cropper/issues"},"author":{"name":"Chen Fengyuan","url":"https://chenfengyuan.com/"},"license":"MIT","homepage":"https://fengyuanchen.github.io/jquery-cropper","keywords":["image","crop","move","zoom","rotate","scale","cropper","cropper.js","cropping","processing","jquery","plugin","jquery-plugin","html","css","javascript","front-end","web"],"repository":{"type":"git","url":"git+https://github.com/fengyuanchen/jquery-cropper.git"},"description":"A jQuery plugin wrapper for Cropper.js.","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"readme":"# jquery-cropper\n\n[![Downloads](https://img.shields.io/npm/dm/jquery-cropper.svg)](https://www.npmjs.com/package/jquery-cropper) [![Version](https://img.shields.io/npm/v/jquery-cropper.svg)](https://www.npmjs.com/package/jquery-cropper) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/jquery-cropper.svg)](https://unpkg.com/jquery-cropper/dist/jquery-cropper.common.js)\n\n> A jQuery plugin wrapper for [Cropper.js 1.0](https://github.com/fengyuanchen/cropperjs/tree/v1).\n\n- [Demo](https://fengyuanchen.github.io/jquery-cropper)\n\n## Main npm package files\n\n```text\ndist/\n├── jquery-cropper.js        (UMD)\n├── jquery-cropper.min.js    (UMD, compressed)\n├── jquery-cropper.common.js (CommonJS, default)\n└── jquery-cropper.esm.js    (ES Module)\n```\n\n## Getting started\n\n### Installation\n\n```shell\nnpm install jquery-cropper jquery cropperjs@1\n```\n\nInclude files:\n\n```html\n<script src=\"/path/to/jquery.js\"></script><!-- jQuery is required -->\n<script src=\"/path/to/cropper.js\"></script><!-- Cropper.js is required -->\n<link  href=\"/path/to/cropper.css\" rel=\"stylesheet\">\n<script src=\"/path/to/jquery-cropper.js\"></script>\n```\n\n### Usage\n\nInitialize with `$.fn.cropper` method.\n\n```html\n<!-- Wrap the image or canvas element with a block element (container) -->\n<div>\n  <img id=\"image\" src=\"picture.jpg\">\n</div>\n```\n\n```css\n/* Limit image width to avoid overflow the container */\nimg {\n  max-width: 100%; /* This rule is very important, please do not ignore this! */\n}\n```\n\n```js\nvar $image = $('#image');\n\n$image.cropper({\n  aspectRatio: 16 / 9,\n  crop: function(event) {\n    console.log(event.detail.x);\n    console.log(event.detail.y);\n    console.log(event.detail.width);\n    console.log(event.detail.height);\n    console.log(event.detail.rotate);\n    console.log(event.detail.scaleX);\n    console.log(event.detail.scaleY);\n  }\n});\n\n// Get the Cropper.js instance after initialized\nvar cropper = $image.data('cropper');\n```\n\n## Options\n\nSee the available [options](https://github.com/fengyuanchen/cropperjs/tree/v1#options) of Cropper.js 1.0.\n\n```js\n$().cropper(options);\n```\n\n## Methods\n\nSee the available [methods](https://github.com/fengyuanchen/cropperjs/tree/v1#methods) of Cropper.js 1.0.\n\n```js\n$().cropper('method', argument1, , argument2, ..., argumentN);\n```\n\n## Events\n\nSee the available [events](https://github.com/fengyuanchen/cropperjs/tree/v1#events) of Cropper.js 1.0.\n\n```js\n$().on('event', handler);\n```\n\n## No conflict\n\nIf you have to use other plugin with the same namespace, just call the `$.fn.cropper.noConflict` method to revert to it.\n\n```html\n<script src=\"other-plugin.js\"></script>\n<script src=\"jquery-cropper.js\"></script>\n<script>\n  $.fn.cropper.noConflict();\n  // Code that uses other plugin's \"$().cropper\" can follow here.\n</script>\n```\n\n## Browser support\n\nIt is the same as the [browser support of Cropper.js 1.0](https://github.com/fengyuanchen/cropperjs/tree/v1#browser-support). As a jQuery plugin, you also need to see the [jQuery Browser Support](https://jquery.com/browser-support/).\n\n## Contributing\n\nPlease read through our [contributing guidelines](CONTRIBUTING.md).\n\n## Versioning\n\nMaintained under the [Semantic Versioning guidelines](https://semver.org/).\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT) © [Chen Fengyuan](https://chenfengyuan.com/)\n","readmeFilename":"README.md"}