converter

package
v0.0.0-...-8a4401a Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyPath     = errors.New("empty file path provided")
	ErrInvalidInput  = errors.New("invalid input file")
	ErrInvalidOutput = errors.New("invalid output path")
	ErrDecoding      = errors.New("failed to decode WebP")
	ErrEncoding      = errors.New("failed to encode PNG")
)

Common errors returned by the package

Functions

func ConvertWebPToPNG

func ConvertWebPToPNG(webpPath, pngPath string) error

ConvertWebPToPNG converts a WebP image file to PNG format. It takes the input WebP file path and desired output PNG file path as parameters. Returns an error if the conversion fails due to invalid paths, read/write errors, or image conversion issues.

Types

This section is empty.

Jump to

Keyboard shortcuts

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