Migrate to bimg & remove exif dependency
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user