We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a002c6a commit 216be48Copy full SHA for 216be48
packages/api-proxy/src/platform/api/image/index.ios.js
@@ -22,13 +22,18 @@ const getImageInfo = function (options = {}) {
22
failHandle(result, fail, complete)
23
return
24
}
25
+ let path = ''
26
+ if (src.toLowerCase().startsWith("http")) {
27
+ path = src
28
+ }
29
Image.getSize(src, (width, height) => {
30
const result = {
31
errMsg: 'getImageInfo:ok',
32
width,
- height
33
+ height,
34
+ path
35
- defineUnsupportedProps(result, ['path', 'orientation', 'type'])
36
+ defineUnsupportedProps(result, ['orientation', 'type'])
37
successHandle(result, success, complete)
38
}, (err) => {
39
0 commit comments