chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

- New profile pictures of users turn randomly after upload.

Open Morepizza1 opened this issue 9 years ago • 4 comments

Situation: upgrade from chamilo 1.9.10.4 to chamilo 1.11.4 / upgrade from php 5.6 to 7.1

Current behavior / Resultado actual / Résultat actuel

  • New profile pictures of users turn randomly after upload.

Expected behavior / Resultado esperado / Résultat attendu

no turning of picture

Steps to reproduce / Pasos para reproducir / Étapes pour reproduire

Chamilo Version / Versión de Chamilo / Version de Chamilo

1.11.4

Morepizza1 avatar Oct 01 '17 22:10 Morepizza1

Google "profile picture turned sideways":

The problem here is that the camera puts the picture in one direction, but the rotation setting of the picture is a different direction. There is a setting in most camera apps to adjust this. The easiest way to fix this now is to upload it to Google photos, Google will fix by aligning the meta data. Now save a local copy. Another way is to load the picture into an editing program, or an online editing site.

jderriks avatar Nov 21 '17 16:11 jderriks

Thanks for helping out @jderriks! I wouldn't have guessed that we were talking about a non-Chamilo issue.

ywarnier avatar Dec 05 '17 05:12 ywarnier

Well... you can always turn any non-Chamilo-issue into a Chamilo feature request of course.

Chamilo could read the exif meta-data in the uploaded picture to rotate it for the user during storage or when shown on the screen. This is described in this link: https://www.go4expert.com/articles/reading-exif-data-images-php-t29367/ So it is not a bug, it is a non-existing feature.

jderriks avatar Dec 07 '17 15:12 jderriks

Yes, sure, but I'm kind of not into accepting feature requests that I don't think will ever be implemented. But fair enough, if @Morepizza1 believes this is worth it and that he might be likely to produce a pull request with the code needed, I'm happy to re-open.

ywarnier avatar Dec 11 '17 20:12 ywarnier