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

Picture orientation #149

Open
nautical-miles opened this issue Jan 22, 2024 · 8 comments
Open

Picture orientation #149

nautical-miles opened this issue Jan 22, 2024 · 8 comments

Comments

@nautical-miles
Copy link

Hi,
after using this module for quite some time now without any problems I now have an issue with the orientation of some Images. Some of them are upside down or on the side. The pictures from my SLR-Camera are all fine. However those coming from my iPhone show this strange behavour. Importet to my Windows-PC I rotated all of them to the correct orientation. Besides, I did the same with the images from the SLR. From there I moved them to the Linux-PC running the Module. On MagicMirror they have a different orientation than on the Windows-PC. Rotating them upside down on purpose sometimes result in the correct display on MM. However if I restart MM the previously correct pictures are now shown on the side or upside down. The orientation changes every time MagicMirror is restarted.
Any ideas on what to do to fix this problem?

Thanks
Oliver

@KristjanESPERANTO
Copy link
Contributor

That sounds interesting. Can you provide an image that causes such problems and one that does not?

@nautical-miles
Copy link
Author

Testbilder.zip
Hi Kristjan,
attacht a zipfile with two pictures (hope the upload works). The one with the lake is fine; the other one is not.

@nautical-miles
Copy link
Author

nautical-miles commented Jan 23, 2024

While reading through #112 (comment) it came to me that it might be helpfull to add some more information about my setup: I am using a local installation (not docker) on a raspberry pi 3.
Somewhere in that issue it is mentioned that a fix is using jimp and "exif data is not taken into account, causing the picture orientation to not be used".
Maybe this is already the root of the problem I have.

@KristjanESPERANTO
Copy link
Contributor

KristjanESPERANTO commented Jan 23, 2024

The images you provided are working fine on my system. But it's not a Raspberry Pi.

To make sure you're not using a fork, let's see what git remote -v outputs when you are in the modules directory.

It should output something like this:

origin	https://github.com/darickc/MMM-BackgroundSlideshow.git (fetch)
origin	https://github.com/darickc/MMM-BackgroundSlideshow.git (push)

Backup your images if you have saved them in the module directory.

To ensure that you use the latest version of the module, do the following in the modules directory:

git reset --hard
git checkout master
git pull
npm install

Start MagicMirror and check whether the issue still occurs.

@nautical-miles
Copy link
Author

Hi Kristjan,
sorry for the late reply.
Doing git remote -v gave the same result as in your example; so it is not a fork. I also reinstalled the module to make sure it is the latest version and restarted MagicMirror. I'll let you know if it helped to fix this issue.

@nautical-miles
Copy link
Author

After a longer test, including some reboots, I have to say that it did not work. The pictures in question still have the wrong orientation.

@KristjanESPERANTO
Copy link
Contributor

As I cannot reproduce your problem on my system, it is difficult for me to find the cause. Perhaps try searching for help in the forum.

@nautical-miles
Copy link
Author

At least I have a workaround to fix this problem. After converting the images from jpg to png the orientation was correct. Even after a reboot it stayed this way.

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

No branches or pull requests

2 participants