mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
* added support for image orientation filter * Add orientation filtering to scenes --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
17 lines
363 B
Go
17 lines
363 B
Go
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
|
|
}
|