mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
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:
17
pkg/models/orientation.go
Normal file
17
pkg/models/orientation.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user