exiffix

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 4 Imported by: 1

README

Exiffix

Exiffix is a one function golang library made to be a replacement for image.Decode to handle orientation stored in EXIF data.

exiffix.Decode has mostly the same signature as image.Decode. The difference is that it requires io.ReadSeeker instead of io.Seeker.

Example

file, err := os.Open(path)
if err != nil{
  panic(err)
}
defer file.Close()
img, fmt, err := exiffix.Decode(file)

Special thanks to Macilias: part of code is taken from his repo

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(reader io.ReadSeeker) (image.Image, string, error)

Decode is image.Decode handling orientation in EXIF tags if exists. Requires io.ReadSeeker instead of io.Reader.

Types

This section is empty.

Jump to

Keyboard shortcuts

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