| description | Image Orientation Search Criterion |
|---|
The Orientation Search Criterion searches for image with specified orientation(s).
Supported orientation values: landscape, portrait and square.
fielDefIdentifier- string representing the identifier of the fieldorientation- strings representing orientations
$query->query = new Criterion\Orientation('image', 'landscape');
OR
$orientations = [
'landscape',
'portrait',
];
$query->query = new Criterion\Orientation('image', $orientations);=== "XML"
```xml
<Query>
<Filter>
<ImageOrientationCriterion>
<fieldDefIdentifier>image</fieldDefIdentifier>
<orientation>landscape</orientation>
</ImageOrientationCriterion>
</Filter>
</Query>
```
=== "JSON"
```json
"Query": {
"Filter": {
"ImageOrientationCriterion": {
"fieldDefIdentifier": "image",
"orientation": "landscape"
}
}
}
OR
"Query": {
"Filter": {
"ImageOrientationCriterion": {
"fieldDefIdentifier": "image",
"orientation": ["portrait", "landscape"]
}
}
}
```