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
@@ -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