jpeg

package
v0.0.0-...-c0b8e48 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jpeg provides utilities on jpeg images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Junkfiy

func Junkfiy(r io.Reader, bytesLimit int) ([]byte, int, error)

Junkify reduces the quality of the image to be no more than the limit. The raw bytes of the reduced-quality image is returned. The quality percentage (1-100) is also returned. If the image is smaller than the limit, its unaltered bytes are returned. If the reader is not a jpeg image, an error is always returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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