Categorygithub.com/macilias/go-images-orientation
modulepackage
0.0.0-20210531092425-a8b16ee6e55d
Repository: https://github.com/macilias/go-images-orientation.git
Documentation: pkg.go.dev

# README

This helper builds on top of two libraries:

github.com/disintegration/imaging and github.com/rwcarlsen/goexif/exif

go get -u github.com/disintegration/imaging
go get -u github.com/rwcarlsen/goexif/exif

and provides a function:

func ReadImage(fpath string) *image.Image

which replaces the original image with a copy of referenced image (jpg, png or gif). The replaced copy has all necessary operation, which are needed to reverse its orientation to 1, applied. The result is a image with corrected orientation and without exif data.

# Functions

No description provided by the author
ReadImage makes a copy of image (jpg,png or gif) and applies all necessary operation to reverse its orientation to 1 The result is a image with corrected orientation and without exif data.