image

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSrcset added in v0.1.0

func BuildSrcset(source string) (string, bool)

func BuildSrcsetFrom added in v0.2.0

func BuildSrcsetFrom(source string, sourceDir string) (string, bool)

BuildSrcsetFrom builds a responsive srcset using assets below sourceDir.

func FindFinalDimensions

func FindFinalDimensions(ow int, oh int) []types.ImageSize

func GenerateImages

func GenerateImages(originalPath string, finalPath string) error

func IsSupportedRasterPath added in v0.1.0

func IsSupportedRasterPath(filePath string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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