On the fly image conversion

This commit is contained in:
2021-02-21 12:31:03 -05:00
parent 5212d7bf70
commit 901a69bb91
13 changed files with 296 additions and 53 deletions

View File

@@ -5,6 +5,7 @@ import (
"net/http"
"time"
"github.com/davidbyttow/govips/v2/vips"
log "github.com/sirupsen/logrus"
"reichard.io/imagini/internal/api"
@@ -44,6 +45,9 @@ func (s *Server) StartServer() {
}
go func() {
vips.Startup(nil)
defer vips.Shutdown()
err := s.httpServer.ListenAndServe()
if err != nil {
log.Error("Error starting server ", err)