Migrate to bimg & remove exif dependency

This commit is contained in:
2021-03-01 11:49:28 -05:00
parent 745d843af7
commit eba444459b
6 changed files with 100 additions and 133 deletions

View File

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