pnglevel

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 8 Imported by: 1

README

pnglevel

Package pnglevel changes zlib compression level of PNG files.

Documentation

Overview

Package pnglevel changes zlib compression level of PNG files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader added in v0.1.0

func NewReader(r io.Reader, level int) io.Reader

Repack reads a PNG file from the given io.Reader and writes it recompressed with the given level to io.Writer.

func Repack

func Repack(w io.Writer, r io.Reader, level int) error

Types

type Reader added in v0.1.0

type Reader struct {
	// contains filtered or unexported fields
}

func (*Reader) Read added in v0.1.0

func (p *Reader) Read(b []byte) (nn int, err error)

Jump to

Keyboard shortcuts

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