{"_id":"@uni/image","_rev":"20-eebfc533c037628067f1e8eeeb10c834","name":"@uni/image","dist-tags":{"beta":"1.0.5-beta1","latest":"1.1.3"},"versions":{"1.0.0-beta":{"name":"@uni/image","version":"1.0.0-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","peerDependencies":{"@uni/env":"^1.0.0-beta"},"dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.0-beta","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-O0jWjr+bXf9ro5fLjRp3MHdDbZx/CPmYY5Mk5/kAK34dk46ote8hsN/p7CzUcUQzI5KBmNTqHS+Sc1a9tnkvUg==","shasum":"a4cc1d4b24170cf36e0a81d1cf625a0d8d07278a","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.0-beta.tgz","fileCount":25,"unpackedSize":258854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOLufCRA9TVsSAnZWagAAHv8QAKEI7CBMmHXzdc/2MiNi\nDhPEKbcwd1Yhbw6zfv8KjVB+hNXG84Atjm54BNUWFPLSmf4DINNnR/fye0mn\nwLKR8k/EyK1pUG5a8RQdfRyvsXHReX0O0UrJOZGhxkFAjrNSCoOUj6+UckI2\noHKpYSz9ScY/jHIbPKuLLSOx0o6yNTs8GiKD18f+9nKJZTMBl4HiBE/KwrPO\n4nscbYFKvhVpyUdpJJknSBDXPr2UE4roNoZWxgzl97bGjzf/hoLl+DaFt+0g\nOU/nZwdtvN2SQ9p/MwFFE4SexNieYhUwaOWnsw3STdKklNNMrrY9eqXfMyLG\n3cBm63Hkv9a7ZvdP5+We4PFd6ZojGLVv/SGYAP52Bzb0iRRLMxbxf9rovGSX\nsQbkm8x6xmwcDBh9lvrrenMSkkVV423UBO/L5GEWt/NQp7w7YU9mmPIIuj+y\ntOgfUdKj4sAI8Uge63IbLPNGi6MS7+XamAu8AVrK/HZyPWuZCy8E+uef79MH\nn6yha9bRhqdhxHxUgeHHxpCxqIL9L7+0kfHUzoybmNikmiJp+VE6gGDwzKiV\ncVI61EIvN3OF325yMwG8CcnvOrAQm4DPKCWdUwW23d4C82VjHhJduTWH/H5o\nEKdFvNSgeGi8DbKDGaH93AC+8isrYG/2FmhGs09FHHpup2TrcbR3t6nrThHr\nh5xD\r\n=kzOW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlRjwb8CDZ+MG7V/cgjqAb6ZDFg9hvGjC0yWIK38MU2AIhAIstgjppxTqW3ELPdSvBx7p08uJfDrQXSw9V8xRAr1zs"}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.0-beta_1614330782594_0.1984938191825769"},"_hasShrinkwrap":false},"1.0.0":{"name":"@uni/image","version":"1.0.0","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","peerDependencies":{"@uni/env":"^1.0.0-beta"},"dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Ssg3F2RDNks9CXjjIkNTM2mOQXn0U4mmMYKjDX3nkYU4tZ/jd5I8vx/Ro1d+XxmZhukPXtIcO4CqIqGHHEghZg==","shasum":"31d808908d7c1fd3259206222776d7301a4a3ef7","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.0.tgz","fileCount":25,"unpackedSize":258849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQM2vCRA9TVsSAnZWagAAiuUQAJxgaYOns2H2J4pkAA7t\nmRiTDEcoZjKDQRzriwQuA0FenUqMwMgk1aJSNNfpp8mkym+f2NO52LzLv9jc\nPxZSo87RaNyOm8sTixC1cNulOY2JjSv5UsbqrpRDE5lAPaOmd+te2wHiOoiG\nlMKULX4f5U0kH+KqjF3zVaDv/mIyKF8n4q6l6MDp9DTyW24u4b/O/xTjK8iu\ntbveTaoPGYDAVQaMpaYRe5f6v3eRP+tH/RpsmxMqVQn7clTpm15wcguF5xGb\n+987rpGw2OQl/VaQGswVZJD26TwDSaYoBtpnHcOr4be/YvvfJ5gDCth6RBW0\nByOZ37P8vWwA+FbroWE24yvPNs/AmNY2zBgg0pPLFIgqFexJS37JuFKqsw8p\n4GuUTZ0xfEtA7Z7tryTK+4sgpq/RYv7l/A6smjf9hJdvsNCtVEhLDaIXI2Nu\nCtpB7dCE56zij6cTFOnPU1DeOBfgNmBLLo7Dl3tvzk0HCU4ZMl6RS1vGopFF\n5HThozTLcByPCJnM75bl9432fuvy7z/5rTmFpV9UVrPMZzx8nyfMiFqbFZbq\nfg/xQVaZxSbMsotCCT2Nc14M630I5Hs1r94weI1iuB9a24yThNTXRvzRd/OU\nNPToRA4cVBZKdXAvogl5RGRUMg0WHEPFvT8K4AWj7ZDNm4+B78oAbLMrqYgs\nWNki\r\n=ik4+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkTd5RXxHOYE8CC/lhN3SphBD6oh9jQ9hgBJydYAKJ4wIhANWwSLxU1SY0HOLjoEgoi+zJ80nAOKuZmIcWvbC6lAk+"}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.0_1614859695004_0.7281624737094359"},"_hasShrinkwrap":false},"1.0.1":{"name":"@uni/image","version":"1.0.1","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","dependencies":{"@uni/env":"^1.0.0","@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.1","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-LBt60EA15W4xwaRW6YGJ8GPCtCeq8qXV/4kXo6rmWjKjQR3E0VujILVckgyynYGgHBkSQ4DCqConfuzIIdpaeA==","shasum":"3193646822e87bb7e1829abcbf4e95a33ee5b628","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.1.tgz","fileCount":25,"unpackedSize":259147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS1cSCRA9TVsSAnZWagAAdaYP/1O61LSbt6j9iRkGyBjR\nc/51iC+wq6Eb16Rl9Q2fZ+XrRe51hamTzJeB9KhUDOcu+rKpe8n6FCWsAT2f\n5C+CqJH6MjfhRt1N2K+tOwT7zKiDT7rheaqqeCocIMUmomSgWsQe7zQfc7w2\nGelghYlwwP+b2dQPqxwmZxi8UuqganEnOt2GEt/IjM3/E7/PKU6OmxN5bEm5\na/D7qrtpnKmXR2LyXrF9NR3KyOnAeEblP3DVdEXbcSZ5epVkPnbRKIr6OamK\nIROXYD/ZaITWHoKKiOXxJ1Snh7EfHBZfe689lvYrY+r39nygSB21c1Nr3bIu\nxQFizhyaRtr/DsyvROAWHDlq/eslQFBnlF79zTii/gd8msPIQSpi1Tpbv1XC\nxsiHsFFqXGzkdrCxL+mJSICqiFAMBICGetmkW7BCIxtZCNr6Tb7sHZwsNee9\nK3zZ7ZhN41LYIpAe/B/0oGLrg/CKMThPl6gPBNQtaF6z8l8ToHn1aeilz0Aw\niM1voBMBUs7QVAhX/o1iG4vN5VWEkiPVp1ylj7z2fcESg0HiWK6wqQa+izMn\nPflbajmWu+FM/at0SAQI0+D5emcOqLq1zWubn/nkDRZ2zAdm51e5nLb5XV7z\nK/nNhenntC6hx9nylUpxBKmtOz3u6Gp4cWjfjL3DCCFSmpTPA1/MuV0m4iKo\nDJap\r\n=DjpR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8VQ5bglljKmm2BOye8LtWvdAlNqPeEmvTZ85HSfAp7AiEA1ZOU+Kc6I5nLkXkiJ/nMUhL5DUC0k85TsPj1yf2gGTQ="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.1_1615550225697_0.5657842062129343"},"_hasShrinkwrap":false},"1.0.2":{"name":"@uni/image","version":"1.0.2","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"dependencies":{"@uni/env":"^1.0.0","@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.2","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-wZlVBZcvHT31gh/OeVgc6sdRQp+WdzOY/7Z1yIGu8Oyokj0QaDmy+NURX8W0kWaFeQaHTlQwTsnMIRvj9TOTMQ==","shasum":"681dc7835415a6465f42addff5f6aef5c03abce5","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.2.tgz","fileCount":95,"unpackedSize":86018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdpuFCRA9TVsSAnZWagAAvIAP/iX9iy/DL8QL81+ZLWCv\nFGp2PSJQdKKVyKy+Q+RjeOZEGs9N692caM3gWl4Ed8YhUYeSp5oxv8YujaRd\nzhQki542gg6x+imorrNsfsw03ZKn2RM/FwUD//fKDoQHEUkXqx+ewVU3d6vk\nD/iohdqJbp4suTLnxCqje/MZcCCKxGDnuYv3WewPmeadi0xoSrWh86oE7ZMW\nLLvibWttN+f0dVy6AyIsgBcai22ScStIvrvRANtspv5sXFdbSaX1vFDy8nqY\nIMZ5L7Cek+gwFbksSnr+mMZAKgSDeYNsAkJDZ2lRH+7VpKyEBLozsIbgaCRd\nUXWzFqCQ6cPRZh1kHXcrc6cVkslOwR428Zi1YosPxhAIzyosIGTBOeqaW0nq\nMDdqqpgY/VgjXKGBVOWH+prPLJbCNbNJ03vbegerRa0ZPnay76jNe4qi3VqV\n3Glg2Or/7be21/BnZZ0hlVCOeLD/SOiY9ASY+aTf83tCyKcafQzB0BwU+uvk\nkFDynRXBPg8QQABdpp0CM4n8mddwS+Ph7lyA2dohzqni4fnXVPZujfIFRx15\nmRR+CAVe84hUZS+RdmwIkW6F0Cc01iZTltcjp2Tms7x6oQ0lSdd53Q8iSdjj\nVk+lQy8r9ug8fxJ4pn6DVYS1MaHd1/PfKe6Bn05NM8eLJYCoS9MFjsTwsxXP\nmXoX\r\n=6TuA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBogS2dt3dixI4rtjNUQJNlTWd59yymqgvbfXWfeCEOsAiApKoP5x8mpPS1k+AHUaaT3qDHsGNVPPAYpAmZawoKQug=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.2_1618385797064_0.9142874674682557"},"_hasShrinkwrap":false},"1.0.3":{"name":"@uni/image","version":"1.0.3","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.3","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-UR7gvF6eUJgATOQEM1ArseuK4ocJUr1Af/a2ChBlYB4X9hpW5j7hwxMTVOs/J2v/X+zVfX2iDWnWMHyRdcBqlg==","shasum":"d47097a8a304b6295cabcd9327a60a1881913b7c","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.3.tgz","fileCount":100,"unpackedSize":113732,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggSwOCRA9TVsSAnZWagAA2hAP+QCUHVf4hk4Z+K958UHj\nOrtFBlljgm/S4wFqJjQj05o+4R9kVtunkG6BWpReWi+zkTxLWZBFfFVXG2LX\n+Ba/HQpXpYk5paQyq1I57eLGnycs5SWEIIe/g3OfqkGjjAM6ludwIwlYy+JB\nm93+NfmI+6qxZp7gcd6lU/KlBugtNXE2IHKdX7mPYUsoOzq6O8tBMo2NBXLa\nFSGKye+4nBP6nZXO42qisGihqjYhBZMKnY7SqYWuDYbeNUhFfoZSMC5aTR5m\nj9juXzvr+OM3Zk/THh5fvFtruS2CzL1ilj4CruVKrYpMaCrdYpb2cuQIGc1C\n6+OAvqi43+s0wa0lacjSgwn4BcQFBReTmNIzIP6alXnlbUNOrb23wY+KryS7\nnjb5hLAH1/xb8r6EVG7EHW5I2TOa2Y/pGDT3h0ZOI1mK4aJgd1viDtLlTLDZ\nnsDp3AElzw6rixlPBSNFNm9bDIKPZL5f9Pwv+KDmse5GK3irK0+CUIuOdszy\nWLBUj+a3UY147GQBButw+BjAdaRbPIecZ44EDNnzJUMMU7h+yB39D296l1uE\nAkOs7jYVC9zp+NY6HE8XNYaQWYsoypezxOAA8brFrmk7XYkU67kOQ7B2kfxs\n6MUpqmNDhMZ/FhXePfc2I/XlOt/wtafN+WiiJBVnZjt4eQGUl+Osn9xqZc3Z\nF3fa\r\n=7YGu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQn9fnJWWXtKigrlUNUPZmtSDojj1IL1GrVPicGiDvtAiBRlyFa5geCjulwfMWW4WpVYWltdNGeJ5UTEEGp2l+hRA=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.3_1619078157614_0.07065760326291382"},"_hasShrinkwrap":false},"1.0.4-beta":{"name":"@uni/image","version":"1.0.4-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# @uni/image\n\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)\n\n## Install\n\n```bash\n$ npm install @uni/image --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n\n# chooseImage \n\nSelects an image from the local album or takes a photo with the camera.\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { chooseImage } from '@uni/image';\n\nchooseImage({\n  count: 1,\n  sourceType: ['album', 'camera'],\n  success (res) {\n    const tempFilePaths = res.tempFilePaths\n  }\n});\n\n// promise\nchooseImage({\n  count: 1,\n  sourceType: ['album', 'camera']\n}).then(res => {\n  const tempFilePaths = res.tempFilePaths\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.chooseImage({\n  count: 1,\n  sourceType: ['album', 'camera'],\n  success (res) {\n    const tempFilePaths = res.tempFilePaths\n  }\n});\n\n// promise\nimage.chooseImage({\n  count: 1,\n  sourceType: ['album', 'camera']\n}).then(res => {\n  const tempFilePaths = res.tempFilePaths\n});\n```\n\n## Methods\n\n### `chooseImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✘ | - |\n| opthons.count | `number` | The maximum number of images allowed | ✘ | 1 |\n| opthons.sourceType | `Array<string>`  | The source of the image | ✘ | ['album', 'camera'] |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.sizeType | `Array.<string>`  | The size of the select image | ✘ | ['original', 'compressed'] | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| tempFilePaths | `Array<string>`  | The list of local temporary file paths to images |\n| tempFiles | `Array<Object>` | The local temporary file list for images |\n\n##### res.tempFiles\n\n| Property | Type | Description |\n| --- | --- | --- |\n| path | `string`  | The path to the local temporary file |\n| size | `number`  | The size of a local temporary file, in bytes |\n\n# compressImage \n\nCompresses images. Multiple types of compression quality are available.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { compressImage } from '@uni/image';\n\ncompressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\ncompressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.compressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\nimage.compressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n## Methods\n\n### `compressImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| opthons.src | `string`  | The path to the image. It can be a relative path, a temporary file path, or a file compress-image path | ✔️ |  - |\n| options.quality | `number`  | Compression quality. The value range is 0-3. | ✘ | - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| tempFilePath | `string` | The temporary file path to the compressed image |\n\n# getImageInfo \n\nObtains image information. For network images, it only takes effect when the download domain name is configured.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { getImageInfo } from '@uni/image';\n\ngetImageInfo({\n  src: 'http://img.icon.com/a.png',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\ngetImageInfo({\n  src: 'http://img.icon.com/a.png'\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.getImageInfo({\n  src: 'http://img.icon.com/a.png',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\nimage.getImageInfo({\n  src: 'http://img.icon.com/a.png'\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n## Methods\n\n### `getImageInfo(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| opthons.src | `string`  | The path to the image. It can be a relative path or a path to a network image. | ✔️ |  - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| width | `number`  | The original width of the image (in px). |\n| height | `number`  | The original height of the image (in px).  |\n| path | `number`  | The local path to the image\t\t|\n\n#### Special Return\n\n| Property | Type | Description | Supported |\n| --- | --- | --- | --- |\n| orientation | `string`  | Device orientation when taking photos | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| type | `string`  | Image format\t| <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\"> no Dingding |\n\n##### orientation\n\n| Value | Description |\n| --- | --- |\n| up\t| Default orientation (landscape) |\n| up-mirrored\t| Mirrored orientation of up |\n| down | Rotates the device 180 degrees |\n| down-mirrored\t| Mirrored orientation of down |\n| left-mirrored |\tMirrored orientation of left |\n| right | Rotates the device 90 degrees clockwise |\n| right-mirrored | Mirrored orientation of right |\n| left | Rotates the device 90 degrees counterclockwise |\n\n# previewImage \n\nPreviews the image in full screen on a new page. You can save or send it to others while preview.\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { previewImage } from '@uni/image';\n\npreviewImage({\n  urls: ['url1', 'url2'],\n  current: 1,\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.previewImage({\n  urls: ['url1', 'url2'],\n  current: 1,\n});\n\n```\n\n## Methods\n\n### `previewImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✘ | - |\n| opthons.urls | `Array<string>` | The URLs of images to preview | ✘ |  |\n| opthons.current | `number`  | The index of the current image in urls list | ✘ | 0 |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.showmenu | `boolean`  | show longpress menu | ✘ | true | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> 2.13.0 |\n\n# saveImage \n\nSaves images to the system album.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { saveImage } from '@uni/image';\n\nsaveImage({\n  url: 'http://img.icon.com/a.png',\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.saveImage({\n  url: 'http://img.icon.com/a.png',\n});\n\n```\n\n## Methods\n\n### `saveImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| opthons.url | `string`  | The path to the image file. It can be a temporary or permanent file path. The path to a network image is not supported | ✔️ |  - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.showActionSheet | `boolean`  | show operation menus for image | ✘ | true |<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> |\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.4-beta","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-7yLRPjFX/d0i3Y1bzYzpBVhbY8SabcBkquHDENtU3gILRRnbbHtuS/j8lujWd7lKne2GUMwBC2IwHOiKI3b+RA==","shasum":"cf2bbd4ee550260cdec4970ae2568d209bd89091","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.4-beta.tgz","fileCount":100,"unpackedSize":118300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpMP1CRA9TVsSAnZWagAAACEP/3mfqLt57S3hTZrsCa8Z\nj/j5NvA5BkWh7vJpbytiVW8SqYvmTuL9o3wCCqWNgt6ljoZl4nJORhyDNbGy\nYOuV476dzkYyDsEeRrvKWbSVsNsfVSObOJEVSyp4EphQ/DoNjRtZz6jf6uMc\nlvKWzI+8r79rsRqU36FHBxN6TI6wgXp2+Q9trAOZePi+aHE4BRjZbVFxb8Zv\nxshK057lPna/jPoncnxAq4vM51ZEPThJ+t5aRWzICkAlSGjea+mHb9G4+5P1\ntBLr3ZWsWioQoSEqsnmSbaFm70VfMZstXgXLQw7iBg95mWcpnrHlsw1J8CNP\nIuJkvYEAqRWgWaXlFqscSDOiitc6qG/xvOGkULvSkJKHcskTtpO8gA+gRHux\nImpz41HHoGkuAJQNMoG9KJZsCX6ZtJYP36+jiIZnEazo21+r1D4590VmjQnM\nv9WZGJp9KdbMjPVnbkuJIHvjgojhI+q9gpoa5EXOgpwGPsWjh7wDvF/wICxk\n3yOItHwcp4sItLdj60zAw9CvKI7BiplfTydCPtMFX/0CmCBsCS8a1/C/vwsJ\nd13h3+7tJIHMoBdGNnDK8jLemaleJHsMISmmUHJd2qYOsWG5d4IZ6mNqzLQw\nK2Qu8YpkGe78vFLqKdFDD5YL6fWaYFLyZUD61f7bJbLEnEMNm5iwlLZuTny1\nNuZ1\r\n=Xw0C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFanZiFcKlOQxB+nFVxjBRsYmfmKGHhP5gAVmzHmf2C4AiAcVbBjLcvi+CbU1eC2+8Kkgn7YL3pGkpSjLL9eF1xFdQ=="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.4-beta_1621410804557_0.4538625367231508"},"_hasShrinkwrap":false},"1.0.4":{"name":"@uni/image","version":"1.0.4","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.4","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-54SBtk0gPINJidOuZraHERy26c9fyKNBOeCoXBWailddvXPvjGcgkSnjQjTnVPvSdkM2WzM28tMhzId2o0M/LQ==","shasum":"02c2d7693089577eaa136d7dbd78bb03958fa1b8","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.4.tgz","fileCount":100,"unpackedSize":118295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrLlPCRA9TVsSAnZWagAATtUQAIMKzyYthdkmYIQBrc7g\nJ6Abv5GvEGt5Q+MUctDjmsjgNf9GSQTmC8VA9Ao9LpHwC7qZPxqIjOZqjrcs\n3EjwwRwynMcTQ9qq4XxUnfBacLOp6QGrZtapeeUzpyVKCjE09p3z/TH4TFW2\ndHljtOu6bwtzFrdeTFNGs+i5IknOG7+ajUlaGs3lQVQK9RoHFc4XjrBR+G6p\n3gYVnPvizp6fCy/aMvlT9eOlI2gO2oXUkVp1gI0bDweyeTzNwLpXyjVM3zjl\n9chnGKBoDt6DCvuFhRI3g1veRfP4bE67M8VvglgDzqNnu0/EJ027/QZpCUa6\n8XWUy6VWFfBnkYezI1NKd15NRwKmalKkur/wzBzLmyNwKL9Pw4ddhJvk1UOp\ni820x+XLElGd/K7Z9pGLcdVUfCCQQm8TUCEkLiwoYXiFyRh/aDkEbuhgJWKp\ntCwvgeXwx3khphIp2HjoE9beq+6FoeuSX9qTEkVllzv2POKDRZ8uJoK5FHIN\nTS0+4WJMwuTpjXThxWB6EVI199a2Biu4UFmzQVgepImPEy6+pmevfLI2dn4P\ndzVJHy/4xCaSUzUk8JzllYzUBLiAR2bD+s1LVxKpvO0gHZUp6epA+BPIpnsu\npKke0cjuHWAKDXDOJXRuod85ItEh3/HzAYXQ9nrxoCWgOECrHsm0uQS28wFD\nGxcY\r\n=Qq7q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEjToSKf4XOJ2YerrqI0Wdvpfnlm2Nch/hgmGZF58Z/XAiEArjy/CKy8xfKyAAGbgfLSFe878XGadhYJ39dKooxNlIc="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.4_1621932366623_0.14461452573280353"},"_hasShrinkwrap":false},"1.0.5-beta":{"name":"@uni/image","version":"1.0.5-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# @uni/image\n\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)\n\n## Install\n\n```bash\n$ npm install @uni/image --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n\n# chooseImage \n\nSelects an image from the local album or takes a photo with the camera.\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { chooseImage } from '@uni/image';\n\nchooseImage({\n  count: 1,\n  sourceType: ['album', 'camera'],\n  success (res) {\n    const tempFilePaths = res.tempFilePaths\n  }\n});\n\n// promise\nchooseImage({\n  count: 1,\n  sourceType: ['album', 'camera']\n}).then(res => {\n  const tempFilePaths = res.tempFilePaths\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.chooseImage({\n  count: 1,\n  sourceType: ['album', 'camera'],\n  success (res) {\n    const tempFilePaths = res.tempFilePaths\n  }\n});\n\n// promise\nimage.chooseImage({\n  count: 1,\n  sourceType: ['album', 'camera']\n}).then(res => {\n  const tempFilePaths = res.tempFilePaths\n});\n```\n\n## Methods\n\n### `chooseImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✘ | - |\n| opthons.count | `number` | The maximum number of images allowed | ✘ | 1 |\n| opthons.sourceType | `Array<string>`  | The source of the image | ✘ | ['album', 'camera'] |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.sizeType | `Array.<string>`  | The size of the select image | ✘ | ['original', 'compressed'] | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| tempFilePaths | `Array<string>`  | The list of local temporary file paths to images |\n| tempFiles | `Array<Object>` | The local temporary file list for images |\n\n##### res.tempFiles\n\n| Property | Type | Description |\n| --- | --- | --- |\n| path | `string`  | The path to the local temporary file |\n| size | `number`  | The size of a local temporary file, in bytes |\n\n# compressImage \n\nCompresses images. Multiple types of compression quality are available.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { compressImage } from '@uni/image';\n\ncompressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\ncompressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.compressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\nimage.compressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n## Methods\n\n### `compressImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| opthons.src | `string`  | The path to the image. It can be a relative path, a temporary file path, or a file compress-image path | ✔️ |  - |\n| options.quality | `number`  | Compression quality. The value range is 0-3. | ✘ | - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| tempFilePath | `string` | The temporary file path to the compressed image |\n\n# getImageInfo \n\nObtains image information. For network images, it only takes effect when the download domain name is configured.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { getImageInfo } from '@uni/image';\n\ngetImageInfo({\n  src: 'http://img.icon.com/a.png',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\ngetImageInfo({\n  src: 'http://img.icon.com/a.png'\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.getImageInfo({\n  src: 'http://img.icon.com/a.png',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\nimage.getImageInfo({\n  src: 'http://img.icon.com/a.png'\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n## Methods\n\n### `getImageInfo(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| opthons.src | `string`  | The path to the image. It can be a relative path or a path to a network image. | ✔️ |  - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| width | `number`  | The original width of the image (in px). |\n| height | `number`  | The original height of the image (in px).  |\n| path | `number`  | The local path to the image\t\t|\n\n#### Special Return\n\n| Property | Type | Description | Supported |\n| --- | --- | --- | --- |\n| orientation | `string`  | Device orientation when taking photos | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| type | `string`  | Image format\t| <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\"> no Dingding |\n\n##### orientation\n\n| Value | Description |\n| --- | --- |\n| up\t| Default orientation (landscape) |\n| up-mirrored\t| Mirrored orientation of up |\n| down | Rotates the device 180 degrees |\n| down-mirrored\t| Mirrored orientation of down |\n| left-mirrored |\tMirrored orientation of left |\n| right | Rotates the device 90 degrees clockwise |\n| right-mirrored | Mirrored orientation of right |\n| left | Rotates the device 90 degrees counterclockwise |\n\n# previewImage \n\nPreviews the image in full screen on a new page. You can save or send it to others while preview.\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { previewImage } from '@uni/image';\n\npreviewImage({\n  urls: ['url1', 'url2'],\n  current: 1,\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.previewImage({\n  urls: ['url1', 'url2'],\n  current: 1,\n});\n\n```\n\n## Methods\n\n### `previewImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✘ | - |\n| opthons.urls | `Array<string>` | The URLs of images to preview | ✘ |  |\n| opthons.current | `number`  | The index of the current image in urls list | ✘ | 0 |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.showmenu | `boolean`  | show longpress menu | ✘ | true | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> 2.13.0 |\n\n# saveImage \n\nSaves images to the system album.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { saveImage } from '@uni/image';\n\nsaveImage({\n  url: 'http://img.icon.com/a.png',\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.saveImage({\n  url: 'http://img.icon.com/a.png',\n});\n\n```\n\n## Methods\n\n### `saveImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| opthons.url | `string`  | The path to the image file. It can be a temporary or permanent file path. The path to a network image is not supported | ✔️ |  - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.showActionSheet | `boolean`  | show operation menus for image | ✘ | true |<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> |\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.5-beta","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-SxKiqDt6j+f05HxfpS0OlqD9M6eXPWS45wUaqBVxIpOaeeKnSpq7htULkmaDKCUQiH0g6B/rvUUAHl8UwP4YUw==","shasum":"1fe90845b6e6cab54751dcecb7cc6dfa45ba8a5b","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.5-beta.tgz","fileCount":102,"unpackedSize":138889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguG+fCRA9TVsSAnZWagAA56kQAILValwXRBbwaTF1WRrb\nv4GVqCejYs6cwWhLa75W9zVtcX4K5ccE/cfDqRH6XIWYjbqydEpVgLEpbBkP\njuqzcKXPQCHZ+x56MSw7BJHdZcXqRym4t6PygdDAcSmH7xSh681gq2+P1Zvp\n5LoDUxg48BrO11podSacNseOcFnDLQDSt/MNuNwFshhzQ+XiNXDRewNcTFBQ\nHMKW2/O8ST14glYrqOqi3TzHCEMAv4JfU8q1UZlnf0GWMjb7UXqTZNusXtW6\nEKegUfkuTZ8gK4Wz3B2JOpMS9lWF1lxBP6R29C6A/sr951ZhSZ/ZPR9vapB9\nwvnDVmwwLFIfYyuUOHrsWVtVNE1gONA7EwguijeT/6jTyd577kMON1TQulQu\nNkfpOVJ3qlPu9se11Quv2sONeu3rS+llUgrgP8dhJoR50qKp4mNNwWmOR1xp\nNAhZfsJvdPm/1QMYIk+RCGX0jbIcx8mfQA6tTAtUbDzJCYMF5FgyUm3sctHh\nwgClLr8S6uAkQ7P2gZh7JHqTmfGrS/u3ywUXwPBzp+TGeNktLe1zUKRx32bg\nKGHnJP/C9S1kY0P9yRsM3wISOMWjbS6aotqIIYgFz7mMZzPVc5jv2JWr28tw\nDrMWu19nxcaoa5NEueGeEe5KJVe66VU8z6lZGJVvf1BFJ9uwO8m237MV6FNo\nL3C6\r\n=YAo7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPkDyaZd0bs8rKjbE1+90FyuFPInJWCRwRzAKWlmbBMAiBW8pQmdxImcntnyC2Fxf8szRWg7XefuHP0NIzCGP1igA=="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.5-beta_1622699935848_0.6322459967275786"},"_hasShrinkwrap":false},"1.0.5-beta1":{"name":"@uni/image","version":"1.0.5-beta1","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/video":"^1.0.0-beta1"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# @uni/image\n\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)\n\n## Install\n\n```bash\n$ npm install @uni/image --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n\n# chooseImage \n\nSelects an image from the local album or takes a photo with the camera.\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { chooseImage } from '@uni/image';\n\nchooseImage({\n  count: 1,\n  sourceType: ['album', 'camera'],\n  success (res) {\n    const tempFilePaths = res.tempFilePaths\n  }\n});\n\n// promise\nchooseImage({\n  count: 1,\n  sourceType: ['album', 'camera']\n}).then(res => {\n  const tempFilePaths = res.tempFilePaths\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.chooseImage({\n  count: 1,\n  sourceType: ['album', 'camera'],\n  success (res) {\n    const tempFilePaths = res.tempFilePaths\n  }\n});\n\n// promise\nimage.chooseImage({\n  count: 1,\n  sourceType: ['album', 'camera']\n}).then(res => {\n  const tempFilePaths = res.tempFilePaths\n});\n```\n\n## Methods\n\n### `chooseImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✘ | - |\n| opthons.count | `number` | The maximum number of images allowed | ✘ | 1 |\n| opthons.sourceType | `Array<string>`  | The source of the image | ✘ | ['album', 'camera'] |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.sizeType | `Array.<string>`  | The size of the select image | ✘ | ['original', 'compressed'] | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| tempFilePaths | `Array<string>`  | The list of local temporary file paths to images |\n| tempFiles | `Array<Object>` | The local temporary file list for images |\n\n##### res.tempFiles\n\n| Property | Type | Description |\n| --- | --- | --- |\n| path | `string`  | The path to the local temporary file |\n| size | `number`  | The size of a local temporary file, in bytes |\n\n# compressImage \n\nCompresses images. Multiple types of compression quality are available.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { compressImage } from '@uni/image';\n\ncompressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\ncompressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.compressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\nimage.compressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n## Methods\n\n### `compressImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| opthons.src | `string`  | The path to the image. It can be a relative path, a temporary file path, or a file compress-image path | ✔️ |  - |\n| options.quality | `number`  | Compression quality. The value range is 0-3. | ✘ | - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| tempFilePath | `string` | The temporary file path to the compressed image |\n\n# getImageInfo \n\nObtains image information. For network images, it only takes effect when the download domain name is configured.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { getImageInfo } from '@uni/image';\n\ngetImageInfo({\n  src: 'http://img.icon.com/a.png',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\ngetImageInfo({\n  src: 'http://img.icon.com/a.png'\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.getImageInfo({\n  src: 'http://img.icon.com/a.png',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\nimage.getImageInfo({\n  src: 'http://img.icon.com/a.png'\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n## Methods\n\n### `getImageInfo(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| opthons.src | `string`  | The path to the image. It can be a relative path or a path to a network image. | ✔️ |  - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| width | `number`  | The original width of the image (in px). |\n| height | `number`  | The original height of the image (in px).  |\n| path | `number`  | The local path to the image\t\t|\n\n#### Special Return\n\n| Property | Type | Description | Supported |\n| --- | --- | --- | --- |\n| orientation | `string`  | Device orientation when taking photos | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| type | `string`  | Image format\t| <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\"> no Dingding |\n\n##### orientation\n\n| Value | Description |\n| --- | --- |\n| up\t| Default orientation (landscape) |\n| up-mirrored\t| Mirrored orientation of up |\n| down | Rotates the device 180 degrees |\n| down-mirrored\t| Mirrored orientation of down |\n| left-mirrored |\tMirrored orientation of left |\n| right | Rotates the device 90 degrees clockwise |\n| right-mirrored | Mirrored orientation of right |\n| left | Rotates the device 90 degrees counterclockwise |\n\n# previewImage \n\nPreviews the image in full screen on a new page. You can save or send it to others while preview.\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { previewImage } from '@uni/image';\n\npreviewImage({\n  urls: ['url1', 'url2'],\n  current: 1,\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.previewImage({\n  urls: ['url1', 'url2'],\n  current: 1,\n});\n\n```\n\n## Methods\n\n### `previewImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✘ | - |\n| opthons.urls | `Array<string>` | The URLs of images to preview | ✘ |  |\n| opthons.current | `number`  | The index of the current image in urls list | ✘ | 0 |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.showmenu | `boolean`  | show longpress menu | ✘ | true | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> 2.13.0 |\n\n# saveImage \n\nSaves images to the system album.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Usage\n\n```javascript\nimport { saveImage } from '@uni/image';\n\nsaveImage({\n  url: 'http://img.icon.com/a.png',\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.saveImage({\n  url: 'http://img.icon.com/a.png',\n});\n\n```\n\n## Methods\n\n### `saveImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| opthons.url | `string`  | The path to the image file. It can be a temporary or permanent file path. The path to a network image is not supported | ✔️ |  - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.showActionSheet | `boolean`  | show operation menus for image | ✘ | true |<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> |\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.5-beta1","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-5gJGeIlyFYt3RD1HdGxiodTVGjsXMyaMz2pAGOcb2KefPFjQCpJ3ZL9XuPKLMbFfXdBJLOlyMAbDzZGc60jpTg==","shasum":"1e3a81409d634bd84be85389baef3c98cd0fc367","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.5-beta1.tgz","fileCount":102,"unpackedSize":139240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvgP5CRA9TVsSAnZWagAA18oP/0lG8C3AZCfQYS33TNyf\nR/4/ELwJ0u4yKNCDFwgagiLuGRxctY0r0ieGlyiVh8MHP1O2fUcHdoLVuiLr\nzdgAqyzSj7ZU9cGwQTsaIqauyDELApGwGuphjICrOPAoHeZD/aagR61RwDE9\nKA5zPkND54cy8Y52gppo5zNILf2z70feze4IPuW94aagCgN33qQAS1Qa9OWI\n3/M6RhrcE/lzTFm22ubCqcwXCX21t8sRJV2s7IEUjL0GVsZxI4HVfil2kNCL\n8SvorNqg9RmMfHB5+hutBPiUuXimH8kiyiaW/sf1eE510kPCUe4BvjibuZmR\nUIOc1RcZ5Hu5eghvpT9cOu5/3XgBtXPkv8QXhBGrZGInkztIrRUF9epGYOj5\nHmXpYrgeMgzu34ABFa21eCMRner/TWAAKDXm/+daoWBHtPVKcP+qNaKe27/R\n9z1/rQ4nHvQsxohwXxMVlHrq2nK6oKZgIe0JNI+DYX9glkYnRfG49iTjoo9M\nT0ABDl9C0+2sjczFRm8RXIH9yfT0tHMpVOH8rlGpuEc6WLtf8NSkqU89wEpc\nbfjMpC7sn6hcBxYKc44yoFbUPCC7nhqZkxdXNXeVDaqvRoEVoz12LjRJR78L\nsaOEiG43bDjuXnd7EifoZ/nh8jKzf5cy9A6wqUf/SmQwGIFVLOW0rGOXxIbN\nt54Q\r\n=HGvU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKEs5ttAMNldemTB21n0o4JCR4rbM4fM68dQ3t6uonwAiEA2J3UkJNzONyfGe7WWhEls3eb9Rubfdcg2QsCCa/bfVU="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.5-beta1_1623065593529_0.7014736169714906"},"_hasShrinkwrap":false},"1.0.5":{"name":"@uni/image","version":"1.0.5","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/video":"^1.0.0-beta1"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.5","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-5fgZTgkBxIoLFVPnkrW7KBRDv6HdfP+7iFcejJq7fCbfikS31c/rXE4fkwppjSrL/feSo+iftr0kAu7Gb8kbtg==","shasum":"ba8f3649c3ad5d864b3aa2a893b164249423c10c","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.5.tgz","fileCount":102,"unpackedSize":139234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvt48CRA9TVsSAnZWagAAFtcP/ivnCoF1FelfgOv5h3cC\nh9nV1Xc2ZBMf6ErnA80gBDoxKrES2Jb0w9X4vF//ek+eV4MCQrWkdHgSiL/I\ne/WJqvwexmqvVTpWONonPo1q1WKgnGDhqzbPJfobrGbTsMToHIvbOxmwsjNX\nq58Rd8Dt5n/IRxUYwT8Vb4Du0xL9qwr3CfcOCjJXzgYunPviLhF/rxdYVwIH\nxy/tzupLTtZQXMKe2BIjU9UXj0TIkiDHOyaflZUIo+XIrUr8GRSxXAPqm5S6\n0IzvB6ch6wmzfoGjapgyyhi1ejkOAErIuNYHtqAENuXe7UOd085oi13Y+P0a\n9oMWruV2Z06RfGZEBsJHkJUb0HnD2BPCmTK/E++0UfC3LI7u5UAFIFl7gcQ/\n1fvChv2EYCkLYX2dNt0/jVrjr+ZYMFmWSKIqYfBo7BLs/PX+KVDBq3rfus8F\n+UrosbHKMMBQIPAhPVY7jMHCF0Gr0avM4CorxtZHifdGB/K0xBxl9xpssoff\nQSEpAxqwT5hlQ53Sftcv7fr6DTHKtb9IyW1loxwW4n2GgCnA4tkNJcFW+Zuz\nMd0MMAFKjnzB1au3xOxmndbmmQH/f8HcchjTEnSaDw454mECFywQdA/2Kc1P\nbX4sJH7LioAe+qoeScP61YhR4FyMAGF5V0y6abhJ33jknYmPutOBKfQ6m/NR\nGQ6x\r\n=3p/3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTg9HWsiRNiAlnyQQa1C4AftIfgpy3+Y0TkZqhRzODAgIhALjj2qa4JjyJ42dPUir+lXYFGiiDmVosHyvnT8knq4ez"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.5_1623121467960_0.4206332614641981"},"_hasShrinkwrap":false},"1.0.6":{"name":"@uni/image","version":"1.0.6","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/video":"^1.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.6","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-fuXciNsx3f9RizwvVCbmv5OaKvrfONmOBAuvWa40M0ss6z3NFHfL0boL4g6doTcLJoIBncbkxJbhGT2Xs2iPEQ==","shasum":"a9a8b3ed58f2d783845ef123396acffe7466fdb5","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.6.tgz","fileCount":102,"unpackedSize":139228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvuBXCRA9TVsSAnZWagAA45IQAJpMrPK0dFLWwSsRSF8M\nZxCza23B/DPiYz540fr3fTE3Nu+NxmSci53DR1/bMoZ94SqM/m+WxR0EXQ/L\njRcAMd80gFaDb7NtuygpEEalv0NC97pFRNsiFSl4EiOABg6kJsA1uZbcVRV4\nugEV/4hqLl5ZHLkpEVLiNSCjV6oGfp17MlzYidH+LHPd0/SGg+IZlwWdyu11\n3HUzB1Bh8z01qnb1X7JpYZWbUSkxGlfOcVN3NOzdpW6AwVg5eHcdUGZPSjh1\ngXyX0wpacBANPW7L8KJkZIOAoQbUtl2WXX1/YbnlgcdO1SMUjnIFv2rRm2yf\nOIewSCv/hp9x/ZwxrscyCVMcjXMRyfX2/p6tbEAvTgwOnI7aAvI9xiOvWQ2A\nhmx5eDBPgVfCzgVbjiA+nnhJfJnlQoYkNxw+XABXUotkbAEW7qdxIFGvrfU6\nb+JsIS9+PmzfQC+JND0XYkScKH5b9d9umkyYu34WcW7W+zXl8BXHhI4CogjS\nfCCSGpVsaH5yYCNweMnuB5B5I3j2Z84u6WbWB2tbCIEIEdxxllvhV4jJvttg\nWWmNZ7mAp6rOJJEOY7uij5Ts4rG3MK5yghhzc40oaIl0criTQeJeeVU+xHmw\ns8xPI21patwtaV886W9lbLXZxedWJhgUCGsU3+Oa9ewa/xkkXX4I4znz5CAF\nSjID\r\n=QdQB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIjV7ylVv3csPPfv7vqR5dSlLSitBObuaiNqJEjdotBQIgdxla9P05nIs0XUql7755POf2QoJEKgpYKOc4ib+N5MY="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.6_1623122007150_0.1588141882865226"},"_hasShrinkwrap":false},"1.0.7":{"name":"@uni/image","version":"1.0.7","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/video":"^1.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.7","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-OcMidRB48jyoM1wG25nOddBqrxWqRFBaOb7AmstK6AOA1lfVkLAsgIMZ19AlpO0uHtG38lv4hBGTd8eFm+uY8A==","shasum":"77357be9693b972adb53ee48fbbe006e3dc9ced6","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.7.tgz","fileCount":102,"unpackedSize":139228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvuNjCRA9TVsSAnZWagAA+gQP/jLJ5WOXQ1eXidGmt5U6\nMxyqo+PCTMjPIVceoB20ZgDQ7Xmz2SUIc64owzO85nbnKaQUG3VHFhEOsSb6\n/t4+lVIzn4pn2DKJSFVBGNkZuniy396rnGDFuJHnpBmym+goZX1Ddy+0ZU3G\npqdnsw1hh8pRRvPbLW52tHTubWkO0otJzKsfk8HDicepkhKth4g1ApZ15hfN\nx0gQOrQ8+3XPDi9bYISeQ6IL2Bk5kYyyab7Yy6XHalftWWPsIhX5naqzEvuU\nR+qRYOX+YU/4tw6ki2Njn2jEpo2qOdEI6X4Lwlf09Jwlt5iJaBmCOJO/w0CH\nEDUN4PhhUTyJdxUqphVykxuZcnYGxy/SDSBiRlAGlezQf+ZJgIspoCo7wQLz\nz6e+cUR2e+AV8xfomL7CY9SPuAK5w0naXBCbUcBBY0DqEnxlFeamKjm6Gnr6\ncSiIZHLAwnwqXl958JZG+i/ny0C3+NfkfEGg4Eox20SUyy2s9gr0xYfQt9DC\nCmyyTfp9Vf9y+1USy2jgWBvSHPZvvSPhvWwU/LvOksDmjnmXu1hdzVJTQefr\nU/T0cEqvHYmcoW69Ce4LcOHwGkdk0D5/cybANukobgoUBbvYf9xDE13HKDYP\nsgHLvGZ1x1sUnOjEkpR1JyUNIozaHmz0rE+/UKIf1pZVQr8AYQsKYr2DBGbb\nFOg6\r\n=OJ0A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiSerrPPE3GdW/NuYdbqHj+xPQwhvUZ1CQY1thGRx7qAIhAJEWHSh8qrb5n17NmQHA56RvIEgr68nj5LVv9F8pvydx"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.7_1623122787046_0.9788659406292581"},"_hasShrinkwrap":false},"1.0.8":{"name":"@uni/image","version":"1.0.8","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/video":"^1.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.8","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-vrlipMTkqsMA472NhcRpVt1NXtemaxUkewzjYmN8FldpY5Pf3+bSvOiohV6aDMH7zjp1/PGjPjbsIbukLEapGw==","shasum":"e41786fc790d31e3a01f60e6cc06e387a494756d","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.8.tgz","fileCount":108,"unpackedSize":159136,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5BY4CRA9TVsSAnZWagAAJAUP/0SPqxxUszcqo6+KizTn\nbHiHMbnhbnhV9LhRcycrGmaYqxd0RznPzGQd4Zku7S0aEEpnEN0qbviRP1Ew\nEGbloZHBgtYMZZ8PsSvGxYZKiQaNyewqLjY/kIVbKFMUdOfImf5OKr+D93+3\nSgSasBi4fQRIn9Ggr5A9Lg+FKzrCCY3RMbgAlHgeX0Z/8tZR2oqNVOr65929\nh5DxPz22qhciX9btwzcSNa3idFJcTHtLD8Hi5Zj2DmTcKwOTzgdGMK0LE8+1\n+En5hrMqDfripL7+fenUQ0FscHaCZ+NIX3Sss4KfbPiWvT840rdTYDnbFk97\nmdSbh+TiCaFAv+Qeby+8ObEkKZI1UPBCuahXPqIcg/rTtNEd6/Q27D2flJzL\nPROuVnal+Nue8AlbvzhsP0SJ0WJ0Oxy2KwRpZGla6qT/74ISVHpoXZtyVRsX\n3GLG9b5H0XBVoyF3CS2JxbE8G9aoKxdgLbzy1PxWi8fLsYcwkI0QgFXVX/bp\n96J3arWMxg+kRwpK/LfECfCIO8SUXz9LDNrCDyG+xy92UfDPFd8/l81gFc/e\n7rKsEiaQ2l65nGsJyOrGBd4ZpkZkll19p7DyVNzQTCmdZYpIY/hgckGFZchF\nc/90SlLJzQpfARmiNljZ7Zn+C4po5bLaBXajS4TkPDfgmQdxwcTeZXyZCx8K\n31M0\r\n=ch7V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKKFHrKtfVxox+V/5uajMZNXdhiKrYFGvcZX/71gA5IAiAPinZ+44dSb+SwFE6kfNcbjQmVuL3F1Ufbi1X/acpj1w=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.8_1625560631874_0.1070706231102454"},"_hasShrinkwrap":false},"1.0.9":{"name":"@uni/image","version":"1.0.9","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/video":"^1.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.0.9","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-tBY0Gh2uqhO1lAshRujA3SKOj+grsuNPHrHKpQ6yKab1a70dCwE7rYMBVNTz4B7pEV9PveVAsIuiWo+BZz0Rwg==","shasum":"b911088bc346f492d04a22a3091b4fbb7a7801ab","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.0.9.tgz","fileCount":108,"unpackedSize":165556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAQ/1CRA9TVsSAnZWagAAfeUP/3mR5HvYFBkbFtNL0bTo\nfwBZJrw38YPVLBbhLZY8kd6BaQROyC6VnOGjXmKDLgSqy3hDIlooSRfeeVH9\nGOaOqzn2VkD4bugzRrph8AFL3OTKSq69X9B2sD5uh5yEWvHJ5T+CRmJ8IM+P\nGqlMHuDwwiwJkf7Jy7z62Iegf7/2gzijQxgktuM4T/84HF/seQRFEvzvzdGN\nodl5EWqRpQfcupSbkoFllDq7FntQ3QrMDYpqWNMbu4UStBr2oV0HgMBWorv0\nsY/AW1xAp9HzYhUzJmoUKphtIadnEVQuW9FxH2Fb88FqMAJS5h2lVr2/CEG3\nVWJb54agdI4SodOr2RM2jxYDoO2utQwJaL3vwi62D6iwOquFWcbBdzFUrXrF\nRi7AdOngtvO1VLDL+ahtFlzwL/EjBqDau/TLcZeYPhZ7OgY/DVtC87BK1Tb/\nX2wMOU77R+I0ADoXAgLnNm9WGMLlJ11/mdTjXUnD4ahHZrjEvdN6iMqsJVan\ncgvzh8Maq2IHIGAF/2OQVecPyG8p4s8LqHqMgwLAzL6VrY2EJaUbrKg3RuJn\nL5VMa2i+AaOQBhWarfqYKUrgDsI2Jchu6+ErvdFdkmJYPp60xm+o0F6SAt2g\n9mZhhM9j6dkTnXSQA+32Dual0uKUwokPJfw9SxbhvubwLv8AmkdEMMEQKU7z\n3Sij\r\n=a2U3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClwMPqOqvXq0TIWHX+aYUxdnz/G4kpvMgs3qbWxDHTwQIge1SjmZ923dXsD/TsYNo/QSupJLJ6iEM3e3yZPQIg2Ao="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.0.9_1627459573207_0.36318959400883877"},"_hasShrinkwrap":false},"1.1.0":{"name":"@uni/image","version":"1.1.0","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/video":"^1.0.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.1.0","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-kaz7jQ+heOviRXdowLu0s9VoHGw6SpshsejZWA5OyN+HKpXw2/HPslrY7ZRrHm7R1n/jhTHAmamUF003dpnwhw==","shasum":"0aef28edffd9b3156fb59c1d1fd5968aba0f1999","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.1.0.tgz","fileCount":144,"unpackedSize":192036,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFLm9CRA9TVsSAnZWagAAfakP/Rw7RyLhKsAKtE8Q20jb\nc3k2/n15r4Rlz/LalU/JHZy3/PGv3gtu8Y0noYydRzeKGrtoF3NbIa4SQPvD\nVzMBLSEPQoGK4Rbql3fuHNc24hXtg7uja4Yj8ytpwqfX/gZ28X6NPlsoHLw/\nk/uL6cslZ/bLc9dDNRtxwoTClF57dMqAthynDHVNi6tBeG9KIMr2mFm4PLPu\nkNM7CBeX3/EoYrhcaBaebuWzXXKXsRjqnDbwpqF3NHRwxDpdHsRLaJeOtrXl\nGHvuMTidopvLLMadetGsLUHhyZbJpanhVDRAMDbky9QCP8f/u6K7mgssAjuR\n/rWEh50HxRUtzfK0+A3e4sYvqYH/okNU9cxFGWYJXw9eh6ziCjVjNZr210Kc\neQk8gyl6ojSPhzFrwuKFfW5zt/QGA4LSUsEyl9FrrJXjtZsD7b2uMdS39fSG\nLmyV+eKRCWPzxGn+LQ5y4sgWH/gMvxekhTL0lCjoQWXzkYpXuhlCfUJ/bhH7\n3VuSj11lsb7uVk5s2mNduu8YNexaKdZUaf+9ldlE4ChidtdJe4QZRhzT7R5A\nR5W/vFzDel0C5ZMoTVrZr/7HpxVPelDPGczyk+Pmmp9iFoKjmVBTYBKZPHrX\nV/j2cNAth/BsdMicXKxibUBNtSERVDelrpUlbN1OEXDFzbFNglLLctSAzDmZ\nHYET\r\n=hMiJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICW9BLPOhRYzm4gCyusU6OreRepjSiU2WMhxlRvAWK5cAiEAzEVzyHn3+xbWZXCp2fUWpGPeClG//aNuTWBE4ur/oyk="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.1.0_1628748220892_0.9272663020769571"},"_hasShrinkwrap":false},"1.1.1":{"name":"@uni/image","version":"1.1.1","description":"[![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./lib/":"./lib/","./*":"./*"},"dependencies":{"@uni/video":"^1.0.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.1.1","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-tZQo9OBKT9azD/ADZi4u3/R0cO2yDxr3fp/nUN9sOik9uJcYnn6IWMmAIDOIlBxmzBSRGSidsLHJs6UcDWXu8Q==","shasum":"58c73b1b48423188750fa2796fe574689c0af560","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.1.1.tgz","fileCount":144,"unpackedSize":196098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJGMeCRA9TVsSAnZWagAA/swP/3AxWE0s9/43TGCGCFQA\nUizrR7PtgGK02OvGabZQobDAgiEsoQZUud46YNcTvH0qPkEgpdIuk77ZcR0K\nmSvDuK/+ANaV8WitSYYaWFXSMXdts2vQRUf7NV80J9VxCPbVxCysH2gBFmBi\nQ1J2/wNxq4YWq6QLomlc/i1N7GHeRXPhEMvD21e2hw6vVjDJJloCAbmwM6Eu\nUl11CBlrwsnWbJbXDS69WFpd0xOyueiXQs7DKVmkk8dEsanQXCY2k02xiEfY\nQwVxlHCvG6DcCDYhEjZlfsDQmML6X5RPOcmffLtGpfUgEACAvfSN3vzMLXp0\nm+XFGg7/jkIL4X1vc8JWjGNDQHKWdiaUBSFa3WdwDBckrcsAiV5v+wtbTJdU\n2oXOK31ElMW69l+s0Mjt3EYc+7IiOTiyULmZkbV8Uxc3OhOXwyaZJC/sJPkG\nRIpAE8IICBB2RY8i5qxiKgPFnvR2rT8T6yrRs4iR9BgftN/IqUq28W+k7ZOf\nXDUum5bWUGV2i26gg7ptcm+cegSh0bB8Y2EhPf0Xi2EWcOypGi0vTaHibnN+\nFmypQyt3yoWF2gChW0PloADhav1/99pIX+ajm1EMxhzfiRKwnQgDFMy2OWgS\nlvk8R2AndpOerXY4O0jj8kFtvklNwQbTiQfFcGXuO1+kPUy5aJGsvUkiAseW\nReSU\r\n=y9MK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6evpIYHK6q0KEWiYjtOQAJ2I6Yi0+p/wtJcqxqvztMQIgbv/D4C6CVBXHp+e11rkux0uBp0sRhzmW1LudPkvQI9o="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.1.1_1629774622108_0.8100271288587899"},"_hasShrinkwrap":false},"1.1.2":{"name":"@uni/image","version":"1.1.2","description":"[![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/video":"^1.0.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.1.2","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-JYqmZcwdwAbvbIYIN4G4kRGZThhn9WEg4MOhn1A87i+0eOxOGEaQaIzqCRgWRU3yI1yj+F/KVYSFRHgphoMGaA==","shasum":"dfbb4a7301c449015d0a6068401129b2d839629e","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.1.2.tgz","fileCount":144,"unpackedSize":196828,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmKws/xpItFPRevr9bsWlPbYECCiWqhCP9uAQa2ZAEDQIhAKyhpzKVR7Ip4w1Z6BJ+l7ZrYu7EKlePcsgupSxY2UH6"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.1.2_1633933372849_0.8878063021423275"},"_hasShrinkwrap":false},"1.1.3":{"name":"@uni/image","version":"1.1.3","description":"[![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/video":"^1.0.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/image@1.1.3","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-68RGzXMYAp8EUZ5jogdQd+KVqyVlKZwuncWmZ96aDqwHhd/J1MnAJuAOAEBL3jCNqXNsvXHLBr5yleg2gdf1yQ==","shasum":"4684401cbe2fd2bbf33330279500c5a31cf4a04f","tarball":"https://registry.npmjs.org/@uni/image/-/image-1.1.3.tgz","fileCount":146,"unpackedSize":207640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2flwCRA9TVsSAnZWagAAgtsP/iBfDMxennKj/8corP61\n+7gWSNXtaFxhAN5F0+eQJm1/fCcw8puT22EMSVWGC8SccJccyvayNGxBUr2s\nYWM9aX2qAxggAIlZpj+9eurCq1G12444R4AHM6QDYUExWLB5G4hMEQdWFC4+\ntXGVqPMpT7aT2hJ0KES6Vj0/f5DmfbL8ZNwFAdc/CK0e1vsVfrjPZC60lJEv\nnslVLtbwhgpXIslq7gVX7b6gptWqglAGK3UDD6ddxAz77T47VjpX1CoV0EDI\n7n+g6Cf9mICo8c7tGVoJ6y3oQz+herC+QyaDm+5388EDalbj6sIcY5aPrIXe\nz0JSePLukFjJ1HAmmr+EBQuGclF9Wy25NrhParYCeyjJ7Kblnl/o+BitjnBj\nSNPdMknlyS+ZO5lEQyCqnd5ZMMDc8sGKPW2qQXdXFe9jCTikwk+43aTXQvil\nxc5AgASxSTMqA3g3Wn89NAzZwvNCZGkGy94Mk94XRJ7G4yAD2SPLmqmDiPqP\nQkveBzSPX0Kb4KhFAZENZWmQ1aKt8w+auIHmyryuJ4ZctC9l4/kQsUG71TsH\nveW4hdE3aF5L8PFMVEP8vV9uh3OXD669Lw5PIZ8ZkggMvB2jQG5xOJlEH+Pl\n5rxjjzALe7uv0OAwAYchE7emuVaN9rkBX0AmrKvZTRMiLnym4rSjsC7EgU2L\nOx0O\r\n=TyYt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHGgv5n29QnzEkLOUMqxbeMmzaL0HLquX91lmNL9ce8RAiBh642CkAqC0vOz6AitFFRHPOxmJXZGS2TEHkluVNNFyw=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image_1.1.3_1636011839643_0.48179784734484654"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-26T09:13:02.360Z","1.0.0-beta":"2021-02-26T09:13:02.732Z","modified":"2022-04-07T09:33:58.555Z","1.0.0":"2021-03-04T12:08:15.236Z","1.0.1":"2021-03-12T11:57:05.899Z","1.0.2":"2021-04-14T07:36:37.211Z","1.0.3":"2021-04-22T07:55:57.746Z","1.0.4-beta":"2021-05-19T07:53:24.740Z","1.0.4":"2021-05-25T08:46:06.750Z","1.0.5-beta":"2021-06-03T05:58:55.979Z","1.0.5-beta1":"2021-06-07T11:33:13.680Z","1.0.5":"2021-06-08T03:04:28.096Z","1.0.6":"2021-06-08T03:13:27.279Z","1.0.7":"2021-06-08T03:26:27.254Z","1.0.8":"2021-07-06T08:37:11.983Z","1.0.9":"2021-07-28T08:06:13.330Z","1.1.0":"2021-08-12T06:03:41.041Z","1.1.1":"2021-08-24T03:10:22.307Z","1.1.2":"2021-10-11T06:22:53.053Z","1.1.3":"2021-11-04T07:43:59.815Z"},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"description":"[![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)","homepage":"https://github.com/raxjs/universal-api#readme","repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"license":"BSD-3-Clause","readme":"# @uni/image\n\n [![npm](https://img.shields.io/npm/v/@uni/image.svg)](https://www.npmjs.com/package/@uni/image)\n\n## Install\n\n```bash\n$ npm install @uni/image --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n\n# chooseImage \n\nSelects an image from the local album or takes a photo with the camera.\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Usage\n\n```javascript\nimport { chooseImage } from '@uni/image';\n\nchooseImage({\n  count: 1,\n  sourceType: ['album', 'camera'],\n  success (res) {\n    const tempFilePaths = res.tempFilePaths\n  }\n});\n\n// promise\nchooseImage({\n  count: 1,\n  sourceType: ['album', 'camera']\n}).then(res => {\n  const tempFilePaths = res.tempFilePaths\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.chooseImage({\n  count: 1,\n  sourceType: ['album', 'camera'],\n  success (res) {\n    const tempFilePaths = res.tempFilePaths\n  }\n});\n\n// promise\nimage.chooseImage({\n  count: 1,\n  sourceType: ['album', 'camera']\n}).then(res => {\n  const tempFilePaths = res.tempFilePaths\n});\n```\n\n## Methods\n\n### `chooseImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✘ | - |\n| options.count | `number` | The maximum number of images allowed | ✘ | 1 |\n| options.sourceType | `Array<string>`  | The source of the image | ✘ | ['album', 'camera'] |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.sizeType | `Array.<string>`  | The size of the select image | ✘ | ['original', 'compressed'] | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" /> |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| tempFilePaths | `Array<string>`  | The list of local temporary file paths to images |\n| tempFiles | `Array<Object>` | The local temporary file list for images |\n\n##### res.tempFiles\n\n| Property | Type | Description |\n| --- | --- | --- |\n| path | `string`  | The path to the local temporary file |\n| size | `number`  | The size of a local temporary file, in bytes |\n\n# compressImage \n\nCompresses images. Multiple types of compression quality are available.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Usage\n\n```javascript\nimport { compressImage } from '@uni/image';\n\ncompressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\ncompressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.compressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\nimage.compressImage({\n  src: 'http://img.icon.com/a.png',\n  quality: 1\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n## Methods\n\n### `compressImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| options.src | `string`  | The path to the image. It can be a relative path, a temporary file path, or a file compress-image path | ✔️ |  - |\n| options.quality | `number`  | Compression quality. The value range is 0-3. | ✘ | - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| tempFilePath | `string` | The temporary file path to the compressed image |\n\n# getImageInfo \n\nObtains image information. For network images, it only takes effect when the download domain name is configured.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Usage\n\n```javascript\nimport { getImageInfo } from '@uni/image';\n\ngetImageInfo({\n  src: 'http://img.icon.com/a.png',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\ngetImageInfo({\n  src: 'http://img.icon.com/a.png'\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.getImageInfo({\n  src: 'http://img.icon.com/a.png',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\n// promise\nimage.getImageInfo({\n  src: 'http://img.icon.com/a.png'\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\n## Methods\n\n### `getImageInfo(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| options.src | `string`  | The path to the image. It can be a relative path or a path to a network image. | ✔️ |  - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| width | `number`  | The original width of the image (in px). |\n| height | `number`  | The original height of the image (in px).  |\n| path | `number`  | The local path to the image\t\t|\n\n#### Special Return\n\n| Property | Type | Description | Supported |\n| --- | --- | --- | --- |\n| orientation | `string`  | Device orientation when taking photos | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" /> |\n| type | `string`  | Image format\t| <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" /> no Dingding |\n\n##### orientation\n\n| Value | Description |\n| --- | --- |\n| up\t| Default orientation (landscape) |\n| up-mirrored\t| Mirrored orientation of up |\n| down | Rotates the device 180 degrees |\n| down-mirrored\t| Mirrored orientation of down |\n| left-mirrored |\tMirrored orientation of left |\n| right | Rotates the device 90 degrees clockwise |\n| right-mirrored | Mirrored orientation of right |\n| left | Rotates the device 90 degrees counterclockwise |\n\n# previewImage \n\nPreviews the image in full screen on a new page. You can save or send it to others while preview.\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Usage\n\n```javascript\nimport { previewImage } from '@uni/image';\n\npreviewImage({\n  urls: ['url1', 'url2'],\n  current: 1,\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.previewImage({\n  urls: ['url1', 'url2'],\n  current: 1,\n});\n\n```\n\n## Methods\n\n### `previewImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✘ | - |\n| options.urls | `Array<string>` | The URLs of images to preview | ✘ |  |\n| options.current | `number`  | The index of the current image in urls list | ✘ | 0 |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.showmenu | `boolean`  | show longpress menu | ✘ | true | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> 2.13.0 |\n| options.images | `Array<object>` | Support the picture link list of the original picture. Note that the order must be consistent with the urls. images: [{url:'Small image address', origin_url:'Original image address'},...] | ✘ | - | <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> |\n\n# saveImage \n\nSaves images to the system album.\n\n## Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Usage\n\n```javascript\nimport { saveImage } from '@uni/image';\n\nsaveImage({\n  url: 'http://img.icon.com/a.png',\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { image } from '@uni/apis';\n\nimage.saveImage({\n  url: 'http://img.icon.com/a.png',\n});\n\n```\n\n## Methods\n\n### `saveImage(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| options.url | `string`  | The path to the image file. It can be a temporary or permanent file path. The path to a network image is not supported | ✔️ |  - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.showActionSheet | `boolean`  | show operation menus for image | ✘ | true |<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> |\n","readmeFilename":"README.en-US.md"}