bn.getImageInfo
▸ getImageInfo(options
): Promise
<ImageInfoResponse
>
description
Get image detail information
example
Parameters
Name | Type | Description |
---|---|---|
options | ImageInfoRequestOption | Image options |
Returns
Promise
<ImageInfoResponse
>
Image detail information
#
Interface: ImageInfoRequestOptionName | Type | Description |
---|---|---|
src | string | Image src path, support network path, local path, code package path |
#
Interface: ImageInfoResponseName | Type | Description |
---|---|---|
width | number | Image original width in px |
height | number | Image original height in px |
path | string | Local path of Image |
orientation | string | Device orientation when taking photos |
type | string | Image format, for example 'jpeg' |