netpbm

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFmt = errors.New("netpdm package hasn't been configured to support this image")
	ErrSrc = errors.New("src file does not exist")
)

Functions

func Convert

func Convert(src, dest string) error

Convert uses netpdm to convert a configured image to PNG.

Types

type Idents

type Idents map[string]Program

func Extensions

func Extensions() Idents

type Program

type Program string
const (
	GEM  Program = "gemtopnm"  // GEM .img format to Netpbm format.
	Gif  Program = "giftopnm"  // GIF to PNM.
	Ilbm Program = "ilbmtoppm" // IFF ILBM to PPM.
	RLE  Program = "cistopbm"  // Compuserve RLE image to PBM.
	PNM  Program = "pnmtopng"  // Netpbm format to Portable Network Graphics.
)

func ID

func ID(src string) (Program, error)

Jump to

Keyboard shortcuts

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