Skip to content
Snippets Groups Projects
Commit 886f7612 authored by Travis Ralston's avatar Travis Ralston
Browse files

Fix checking for exif data on JPEGs

parent b60958ef
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,9 @@ func GetExifOrientation(img io.ReadCloser) (*ExifOrientation, error) {
}
rawValue, err := exifData.Get(exif.Orientation)
if exif.IsTagNotPresentError(err) {
return nil, nil
}
if err != nil {
return nil, errors.New("exif: error getting orientation: " + err.Error())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment