Let the user rotate pictures which support EXIF [$5]
From @oparoz on July 26, 2015 15:12
Pictures which support EXIF can store rotation information, so we could show rotate buttons and store the new value in the file. The thumbnails would need to be cleared and re-rendered.
There is a $5 open bounty on this issue. Add to the bounty at Bountysource.
Copied from original issue: owncloud/gallery#236
From @prilly on August 17, 2015 1:28
This problem seems to be the same as the old gallery app, i think that was fixed. The problem is the thumbnails is stored as .png and not .jpeg. exif info is not contained in .png format.
I think its possible to look at the fixes made to the old gallery app for a indication of how to solve this problem.
https://github.com/owncloud/apps/issues/1568
Thumbnails and slideshow previews are based off a "max preview" which is created the first time a file is accessed. If the Exif data is correct at that time, then Gallery will show the images with the proper orientation.
So there is no problem anymore, but users want to be able to modify the orientation of pictures they see, in case it's not correct in the JPG itself and that's possible by working directly on the original and re-rendering new thumbnails.
From @macmadness86 on July 22, 2016 20:59
@oparoz
"max preview" which is created the first time a file is accessed. If the Exif data is correct at that time, then Gallery will show the images with the proper orientation.
I just found your comment while searching for how to the reset gallery for some users. The users who viewed pictures before I uncommented the PHP extension exif.so in /etc/php/php.ini see incorrectly oriented pictures (ignored Orientation tag in metadata). While new users (post-change) have the correct orientation, the wrong orientation problem persists for older users who viewed the images prior to the change. Any way to reset this for users?
There is no elegant way to reset the previews for a user, because there has been no change to the data itself. Potential solutions:
- re-upload the images
- delete all the thumbnails for those users
- only delete specific thumbnails for those users