jpeg

package
v0.0.0-...-77ed03d Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jpeg provides a JPEG imageserver/image.Encoder implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder struct {
	DefaultQuality int
}

Encoder is a JPEG imageserver/image.Encoder implementation.

It supports the "quality" param (1 to 100).

func (*Encoder) Change

func (enc *Encoder) Change(params imageserver.Params) bool

Change implements imageserver/image.Encoder.

func (*Encoder) Encode

func (enc *Encoder) Encode(w io.Writer, nim image.Image, params imageserver.Params) error

Encode implements imageserver/image.Encoder.

Jump to

Keyboard shortcuts

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