diff --git a/docs/ext-storage/dev.md b/docs/ext-storage/dev.md index e0bab868d57193794bf81ac6f2f37bccd9749e90..cc14a25792404494305fccaa0067bf6af306237f 100644 --- a/docs/ext-storage/dev.md +++ b/docs/ext-storage/dev.md @@ -2009,6 +2009,24 @@ let base64 = urlsafeBase64Encode("test/a.jpg"); console.log('base64: ', base64); ``` +### 私有文件如何使用图片处理?@privatehandle + +在调用 getTempFileURL 的时候,fileList 内带上图片处理参数即可 + +**云端代码** + +```js +const extStorageManager = uniCloud.getExtStorageManager({ + provider: "qiniu", + domain: "example.com", // 域名地址 +}); +let res = extStorageManager.getTempFileURL({ + fileList: ["qiniu://test.jpg?imageMogr2/thumbnail/!20p"], // 文件地址列表 +}); +console.log('getTempFileURL: ', res); +return res; +``` + ## 视频处理@videoshandle ### 音视频转码@video-transcode @@ -2994,21 +3012,3 @@ module.exports = { [qshell-下载地址](https://github.com/qiniu/qshell/tree/master) [qshell-本地文件同步教程](https://github.com/qiniu/qshell/blob/master/docs/qupload.md) - -### 私有文件如何使用图片处理?@q6 - -在调用 getTempFileURL 的时候,fileList 内带上图片处理参数即可 - -**云端代码** - -```js -const extStorageManager = uniCloud.getExtStorageManager({ - provider: "qiniu", - domain: "example.com", // 域名地址 -}); -let res = extStorageManager.getTempFileURL({ - fileList: ["qiniu://test.jpg?imageMogr2/thumbnail/!20p"], // 文件地址列表 -}); -console.log('getTempFileURL: ', res); -return res; -``` \ No newline at end of file