13 lines
265 B
Go
13 lines
265 B
Go
|
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, "','") + "'")
|