images

package
v0.133.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 38

Documentation

Overview

Package images provides template functions for manipulating images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace struct {
	*images.Filters
	// contains filtered or unexported fields
}

Namespace provides template functions for the "images" namespace.

func New

func New(d *deps.Deps) *Namespace

New returns a new instance of the images-namespaced template functions.

func (*Namespace) Config

func (ns *Namespace) Config(path any) (image.Config, error)

Config returns the image.Config for the specified path relative to the working directory.

func (*Namespace) Filter added in v0.58.0

func (ns *Namespace) Filter(args ...any) (images.ImageResource, error)

Filter applies the given filters to the image given as the last element in args.

Jump to

Keyboard shortcuts

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