photoprism/internal/crop/names.go

18 lines
355 B
Go
Raw Normal View History

2021-09-05 17:10:52 +02:00
package crop
import "github.com/photoprism/photoprism/pkg/fs"
// Name represents a crop size name.
type Name string
// Jpeg returns the crop name with a jpeg file extension suffix as string.
func (n Name) Jpeg() string {
return string(n) + fs.JpegExt
}
// Names of standard crop sizes.
const (
Tile160 Name = "tile_160"
Tile320 Name = "tile_320"
)