added support for image orientation filter (#4404)

* added support for image orientation filter
* Add orientation filtering to scenes
---------
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
keenbed
2024-01-16 03:50:17 +01:00
committed by GitHub
parent aeb68a5851
commit 14bde44597
14 changed files with 157 additions and 0 deletions

17
pkg/models/orientation.go Normal file
View File

@@ -0,0 +1,17 @@
package models
type OrientationEnum string
const (
OrientationLandscape OrientationEnum = "LANDSCAPE"
OrientationPortrait OrientationEnum = "PORTRAIT"
OrientationSquare OrientationEnum = "SQUARE"
)
func (e OrientationEnum) IsValid() bool {
switch e {
case OrientationLandscape, OrientationPortrait, OrientationSquare:
return true
}
return false
}