orientation
Extract image orientation values (1-8) from various input formats (path, URL, base64, buffer) using metadata analysis to ensure correct display and processing.
Instructions
Get image orientation value (1-8)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"image": {
"additionalProperties": false,
"properties": {
"buffer": {
"type": "string"
},
"data": {
"type": "string"
},
"kind": {
"enum": [
"path",
"url",
"base64",
"buffer"
],
"type": "string"
},
"path": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
}
},
"required": [
"image"
],
"type": "object"
}