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
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