photoprism/pkg/media/preview.go

13 lines
265 B
Go
Raw Normal View History

package media
import (
"strings"
"github.com/jinzhu/gorm"
"github.com/photoprism/photoprism/pkg/fs"
)
var PreviewFileTypes = []string{fs.ImageJPEG.String(), fs.ImagePNG.String()}
var PreviewExpr = gorm.Expr("'" + strings.Join(PreviewFileTypes, "','") + "'")