Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exiftran for seamless photos rotations #363

Merged
merged 7 commits into from
Feb 19, 2018

Conversation

astyonax
Copy link
Contributor

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:

  1. Image.php: I added the code in Image.php to handle the rotation
  2. AdminUpload.php: one function call just below the video conversion call
  3. Settings.php: Added settings configuration
  4. default.ini: added the new strings
  5. 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 :)

@thibaud-rohmer thibaud-rohmer merged commit 412057b into thibaud-rohmer:master Feb 19, 2018
@thibaud-rohmer
Copy link
Owner

Cool !

@astyonax
Copy link
Contributor Author

Done and pushed. I'll make a PR later today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants