rwcarlsen / goexif

Decode embedded EXIF meta data from image files.
BSD 2-Clause "Simplified" License
627 stars 134 forks source link

provide a way to read a image with corrected orientation in go #55

Open Macilias opened 6 years ago

Macilias commented 6 years ago

I was searching for a function which can give you the image in orientation 1. This is needed when you deal with images which has been created with smartphones, since those are mostly shown with wrong orientation.
Since your solution only reads exif it was not able to correct the exif data after transfer, but since the copy has no exif at all the images are now shown correctly. Maybe you would like to integrate this function somehow? Its quite nice, since go does not provide support for orientation out of the box. Here is the solution: https://github.com/Macilias/go-images-orientation