Fix for https://github.com/golang/go/issues/4341 with less deps. forked from https://github.com/edwvee/exiffix
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forest
06c47cdea0
|
2 months ago | |
---|---|---|
test_data | 5 years ago | |
README.md | 7 years ago | |
decode.go | 2 months ago | |
decode_test.go | 5 years ago | |
go.mod | 2 months ago | |
go.sum | 2 months ago | |
transform.go | 4 years ago |
README.md
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