Skip to content
/ exiffix Public

EXIF orientation correct replacement for golang's image.Decode

License

Notifications You must be signed in to change notification settings

edwvee/exiffix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

EXIF orientation correct replacement for golang's image.Decode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages