jpeg

package
v0.0.0-...-4e684ef Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 5 Imported by: 11

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