I implemented the option to rotate the photos accordingly to their exif tags using exiftran (which does lossless rotation, as a plus). The rotation is done once for all when the photo is uploaded.
Changes:
Image.php: I added the code in Image.php to handle the rotation
AdminUpload.php: one function call just below the video conversion call
Settings.php: Added settings configuration
default.ini: added the new strings
Dockerfile for both docker images are updated with the new dependency (exiftran, indeed)
Use case:
I share the folder Photos with a dlna server which is not able to rotate the photos for the players.
Plus, in my setup the patch in #312 (in #322) does not seem to work at all.
I am by no means a php programmer, but I hope my code is good enough to be merged.
Let me know your comments :)
Hi,
I implemented the option to rotate the photos accordingly to their exif tags using
exiftran
(which does lossless rotation, as a plus). The rotation is done once for all when the photo is uploaded.Changes:
Image.php
: I added the code in Image.php to handle the rotationAdminUpload.php
: one function call just below the video conversion callSettings.php
: Added settings configurationdefault.ini
: added the new stringsDockerfile
for both docker images are updated with the new dependency (exiftran, indeed)Use case: I share the folder
Photos
with adlna
server which is not able to rotate the photos for the players. Plus, in my setup the patch in #312 (in #322) does not seem to work at all.I am by no means a php programmer, but I hope my code is good enough to be merged. Let me know your comments :)