Image
my.getImageInfo
Get information about an image file.
Use this API to retrieve width, height, and other metadata about an image.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get information about an image file.
| Property | Type | Required | Description |
|---|---|---|---|
| src | String | No | Image path (local or remote) |
| success | Function | No | Callback with image info |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
| Property | Type | Description |
|---|---|---|
| width | Number | Image width in pixels |
| height | Number | Image height in pixels |
| path | String | Local path to image |
| orientation | String | Image orientation |
| type | String | Image format |
my.getImageInfo({
src: 'https://example.com/image.jpg',
success: (res) => {
console.log('Size:', res.width, 'x', res.height);
}
});