fix: replace github.com/disintegration/imaging with github.com/kovidgoyal/imaging

This commit is contained in:
Thomas Müller
2024-04-26 11:29:22 +02:00
parent f7fb0bc591
commit a53a7cf8b5
26 changed files with 395 additions and 255 deletions
@@ -12,7 +12,7 @@ import (
"mime"
"strings"
"github.com/disintegration/imaging"
"github.com/kovidgoyal/imaging"
"github.com/pkg/errors"
"golang.org/x/image/font"
"golang.org/x/image/font/opentype"
@@ -7,7 +7,7 @@ import (
"image/gif"
"strings"
"github.com/disintegration/imaging"
"github.com/kovidgoyal/imaging"
)
// Generator generates a web friendly file version.
@@ -4,7 +4,7 @@ import (
"image"
"strings"
"github.com/disintegration/imaging"
"github.com/kovidgoyal/imaging"
)
// Processor processes the thumbnail by applying different transformations to it.
@@ -13,7 +13,7 @@ type Processor interface {
Process(img image.Image, width, height int, filter imaging.ResampleFilter) *image.NRGBA
}
// DefinableProcessor is the most simple processor, it holds a replaceable image converter function.
// DefinableProcessor is the simplest processor, it holds a replaceable image converter function.
type DefinableProcessor struct {
Slug string
Converter func(img image.Image, width, height int, filter imaging.ResampleFilter) *image.NRGBA
@@ -3,7 +3,7 @@ package thumbnail_test
import (
"testing"
"github.com/disintegration/imaging"
"github.com/kovidgoyal/imaging"
tAssert "github.com/stretchr/testify/assert"
"github.com/owncloud/ocis/v2/services/thumbnails/pkg/thumbnail"