imagefile

package module
v0.0.0-...-82fed10 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2015 License: ISC Imports: 4 Imported by: 0

README

Go.Image File

Build Status

About

This is Go implementation of imagefile image format.

imagefile format was deprecated by farbfeld; documentation and refence implementation is no longer available.

It uses Go's image interface, similar to image/png.

Install

go get github.com/hullerob/go.imagefile

Usage

See examples.

Documentation

Overview

Package imagefile implements a imagefile decoder and encoder.

The imagefile specification can be found at http://git.2f30.org/imagefile/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader) (image.Image, error)

Decode reads an imagefile from r and returns it as image.NRGBA.

func DecodeConfig

func DecodeConfig(r io.Reader) (image.Config, error)

DecodeConfig returns dimensions of imagefile image.

func Encode

func Encode(w io.Writer, m image.Image) error

Encode writes m to w in imagefile format. If m is not image.NRGBA, it will be converted lossily.

Types

This section is empty.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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