Versions in this module Expand all Collapse all v0 v0.1.0 Dec 3, 2026 Changes in this version + var ErrDecoder error = &statusError + var ErrNotSupported error = &statusError + func Response(img *Image, format Format, opts ...Option) *web.Response + type Alignment int + const Bottom + const BottomLeft + const BottomRight + const Center + const Left + const Right + const Top + const TopLeft + const TopRight + func ParseAlignment(name string) (Alignment, error) + func (a Alignment) Offset(x, y int) Position + func (a Alignment) String() string + type Bezier struct + Background string + Border Border + Points []Point + type Border struct + Color string + Width int + type Circle struct + Background string + Border Border + Diameter int + X int + Y int + type Color struct + A uint8 + B uint8 + G uint8 + R uint8 + func ParseColor(value string) (Color, error) + func (c Color) Hex() string + func (c Color) RGBA() (r, g, b, a uint32) + type Config struct + AutoOrientation bool + BackgroundColor string + DecodeAnimation bool + type Direction int + const Horizontal + const Vertical + type Ellipse struct + Background string + Border Border + Height int + Width int + X int + Y int + type Encoded struct + func (e *Encoded) Bytes() []byte + func (e *Encoded) DataURI() string + func (e *Encoded) Format() Format + func (e *Encoded) MediaType() string + type Font struct + Align Alignment + Color string + File string + LineHeight float64 + Size float64 + Wrap int + type Format string + const AVIF + const BMP + const GIF + const HEIC + const JPEG + const PNG + const TIFF + const WEBP + func FormatOf(name string) (Format, error) + func (f Format) Extension() string + func (f Format) MediaType() string + type Frame struct + Delay time.Duration + Image *stdimage.NRGBA + type Image struct + func (img *Image) At(x, y int) color.Color + func (img *Image) Background() Color + func (img *Image) Blur(level int) *Image + func (img *Image) Bounds() stdimage.Rectangle + func (img *Image) Brightness(level int) *Image + func (img *Image) Clone() *Image + func (img *Image) ColorAt(x, y int) Color + func (img *Image) ColorModel() color.Model + func (img *Image) Colorize(red, green, blue int) *Image + func (img *Image) Contain(width, height int, position Position) *Image + func (img *Image) ContainDown(width, height int, position Position) *Image + func (img *Image) Contrast(level int) *Image + func (img *Image) Cover(width, height int, position Position) *Image + func (img *Image) CoverDown(width, height int, position Position) *Image + func (img *Image) Crop(width, height int, position Position) *Image + func (img *Image) Draw(shapes ...Shape) *Image + func (img *Image) DrawPixel(x, y int, value string) *Image + func (img *Image) Encode(format Format, opts ...Option) (*Encoded, error) + func (img *Image) Err() error + func (img *Image) Exif() map[string]any + func (img *Image) Fill(value string) *Image + func (img *Image) FillAt(value string, x, y int) *Image + func (img *Image) FillTransparentAreas() *Image + func (img *Image) Flip(direction Direction) *Image + func (img *Image) Frames() []Frame + func (img *Image) Gamma(gamma float64) *Image + func (img *Image) Grayscale() *Image + func (img *Image) Height() int + func (img *Image) Insert(source *Image, position Position) *Image + func (img *Image) InsertWithOpacity(source *Image, position Position, opacity int) *Image + func (img *Image) Invert() *Image + func (img *Image) IsAnimated() bool + func (img *Image) Loops() int + func (img *Image) Orient() *Image + func (img *Image) Origin() Origin + func (img *Image) Pixelate(size int) *Image + func (img *Image) ReduceColors(limit int) *Image + func (img *Image) RemoveAnimation(index int) *Image + func (img *Image) Resize(width, height int) *Image + func (img *Image) ResizeCanvas(width, height int, position Position) *Image + func (img *Image) ResizeCanvasRelative(width, height int, position Position) *Image + func (img *Image) ResizeDown(width, height int) *Image + func (img *Image) Rotate(angle float64) *Image + func (img *Image) Save(path string, opts ...Option) error + func (img *Image) Scale(width, height int) *Image + func (img *Image) ScaleDown(width, height int) *Image + func (img *Image) SetBackground(value string) *Image + func (img *Image) SetLoops(loops int) *Image + func (img *Image) Sharpen(level int) *Image + func (img *Image) Size() stdimage.Point + func (img *Image) SliceAnimation(offset, length int) *Image + func (img *Image) Store(ctx context.Context, disk *storage.Disk, path string, opts ...Option) error + func (img *Image) Text(text string, x, y int, font Font) *Image + func (img *Image) Trim(tolerance int) *Image + func (img *Image) Width() int + type Line struct + Color string + From Point + To Point + Width int + type Manager struct + func From(ctx context.Context) *Manager + func New(configure ...func(cfg *Config)) *Manager + func (m *Manager) Base64(encoded string) (*Image, error) + func (m *Manager) Canvas(width, height int) *Image + func (m *Manager) Config() Config + func (m *Manager) DataURI(uri string) (*Image, error) + func (m *Manager) Decode(data []byte) (*Image, error) + func (m *Manager) FromImage(source stdimage.Image) *Image + func (m *Manager) Load(ctx context.Context, disk *storage.Disk, path string) (*Image, error) + func (m *Manager) Open(path string) (*Image, error) + func (m *Manager) Read(r io.Reader) (*Image, error) + func (m *Manager) Register(app *laravel.Registrar) error + func (m *Manager) Upload(upload *web.Upload) (*Image, error) + type Option func(o *options) + func Quality(quality int) Option + type Origin struct + Format Format + Path string + type Point = stdimage.Point + func Pt(x, y int) Point + type Polygon struct + Background string + Border Border + Points []Point + type Position interface + type Rectangle struct + Background string + Border Border + Height int + Width int + X int + Y int + type Shape interface