2022-10-15 21:54:11 +02:00
|
|
|
package get
|
2022-08-31 18:53:04 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"github.com/photoprism/photoprism/internal/photoprism"
|
|
|
|
)
|
|
|
|
|
|
|
|
var onceThumbs sync.Once
|
|
|
|
|
|
|
|
func initThumbs() {
|
|
|
|
services.Thumbs = photoprism.NewThumbs(Config())
|
|
|
|
}
|
|
|
|
|
|
|
|
func Thumbs() *photoprism.Thumbs {
|
|
|
|
onceThumbs.Do(initThumbs)
|
|
|
|
|
|
|
|
return services.Thumbs
|
|
|
|
}
|