image

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package image defines the ImageProcessor capability contract for build-time image plugins. It lives in pkg/ (not internal/) so .so plugins can import the exact host type — a contract defined in internal/ causes silent cross-.so interface mismatch (see the deploy/translate bugs of 2026-07-28).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageProcessor

type ImageProcessor interface {
	pkgplugin.Plugin

	// Process compresses, converts, and resizes images in the output directory.
	// outputDir is the build output directory (publishDir).
	// sourceDir is the project root (for config resolution).
	Process(outputDir, sourceDir string) error
}

ImageProcessor is the capability interface for plugins that process images during the build pipeline (compress, resize, format conversion). It embeds the base Plugin and adds Process.

Jump to

Keyboard shortcuts

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