media handling

This commit is contained in:
tsmethurst
2021-04-09 17:21:53 +02:00
parent f210d39891
commit a30a1a267b
8 changed files with 431 additions and 1 deletions

View File

@ -123,6 +123,7 @@ const (
type FileMeta struct {
Original Original
Small Small
Focus Focus
}
// Small can be used for a thumbnail of any media type
@ -140,3 +141,8 @@ type Original struct {
Size int
Aspect float64
}
type Focus struct {
X float32
Y float32
}