imageops

package
v0.0.0-...-455d0e3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package imageops provides in-process image transforms.

Rotation runs at ingest, between JPEG decode and motion gate, so every downstream consumer (detector, ReID, face id, tracker, identity resolver, live view) sees a single canonical orientation. No cgo, no external dependencies — just the Go stdlib image package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJPEG

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

DecodeJPEG decodes JPEG bytes into an image.Image.

func EncodeJPEG

func EncodeJPEG(img image.Image, quality int) ([]byte, error)

EncodeJPEG encodes img as JPEG at the given quality (1–100).

func RotateCW

func RotateCW(src image.Image, degrees int) (image.Image, error)

RotateCW returns a new image rotated clockwise by degrees. degrees must be 0, 90, 180, or 270.

Types

This section is empty.

Jump to

Keyboard shortcuts

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