Files
imgproxy/auximageprovider/provider.go
2025-09-05 00:46:25 +06:00

19 lines
578 B
Go

// auximagedata exposes an interface for retreiving auxiliary images
// such as watermarks and fallbacks. Default implementation stores those in memory.
package auximageprovider
import (
"context"
"net/http"
"github.com/imgproxy/imgproxy/v3/imagedata"
"github.com/imgproxy/imgproxy/v3/options"
)
// Provider is an interface that provides image data and headers based
// on processing options. It is used to retrieve WatermarkImage and FallbackImage.
type Provider interface {
Get(context.Context, *options.ProcessingOptions) (imagedata.ImageData, http.Header, error)
}