Wrong orientation on some images in gallery

some of my images are not in the right orientation, even though they should be.
This is one of those files: Nextcloud
you can see that it is in the right orientation if you download the file.

One possible reason is that I did not have the exiv-php-plugin enabled when this file was uploaded. I enabled the plugin and tried to do a occ files:scan on my user but the orientation keeps the same. What can I do?