photoprism/pkg/media/preview.go
Michael Mayer 97c9962053 Index: Add experimental EPS and SVG vector graphics support #1177 #2207
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-11 20:18:04 +01:00

12 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, "','") + "'")