Categorygithub.com/e-conomic/go-imagecoding
modulepackage
0.0.14
Repository: https://github.com/e-conomic/go-imagecoding.git
Documentation: pkg.go.dev

# README

Go Image Coding

Go Report Card go-doc

Go (bindings for) image en-/de-coding using libraries found on debian and other common systems. Go comes with image processing built-in, written in go, but often they can't quite match the performance of established image processing libraries such as jpeg-turbo etc.

While general purpose, this project is opinionated and tailor to our needs.

Install (debian)

See Dockerfile

Install (OS X)

brew install jpeg-turbo libpng libheif webp pkg-config

HEIF/HEIC

This package optionally supports heif, to include heif; add -tags heif to your gobuild. It's enabled by default on darwin (macOS).

# Functions

No description provided by the author
DecodeConfig is like image.DecodeConfig but supports additional formats For JPEGs it uses jpeg-turbos internal function for compatibility.
Calculcate at what scale to use for OCR optimized pages We prefer maximum what would be the equivalent for a A4 page at 150 ppi.
No description provided by the author
FixOrientation uses the imaging library to correct for orientation.
GetOrientation returns the image orientation from EXIF data https://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/ TopLeft 1: 0 degrees – the correct orientation, no adjustment is required.
NewRGBImage allocates and returns RGB image.
Transform scales, colormaps and orients an image according to input param.
No description provided by the author

# Constants

297 mm / 25.4 mm/inch * 150 ppi ≈ 1754 pixels.
210 mm / 25.4 mm/inch * 150 ppi ≈ 1204 pixels.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
RGBModel is RGB color model instance.

# Structs

RGB color.
RGBImage represent image data which has RGB colors.

# Type aliases

No description provided by the author
Enum representation for Exif Orientation.
No description provided by the author