resize

package
v0.0.0-...-2b7d969 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewResizeHandler

func NewResizeHandler(ig ImageGetter) *Handler

func (*Handler) Resize

func (h *Handler) Resize(w http.ResponseWriter, r *http.Request)

type ImageGetter

type ImageGetter interface {
	GetResizedImage(width, height int, imgURL string, header http.Header) (image.Image, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL