netpbm

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package netpbm interacts with the netpdm graphics programs and programming library.

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(w io.Writer, 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