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

Unable to access file or unknown file format #33

Closed
makuris opened this issue May 21, 2021 · 8 comments
Closed

Unable to access file or unknown file format #33

makuris opened this issue May 21, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@makuris
Copy link

makuris commented May 21, 2021

Hi, i have updated to 0.3.2 and now from time to time I get the following new error message:
IMG_20210521_200600.jpg

New added images are now shown in the correct rotation. But why do I get the error message?

@avanc
Copy link
Owner

avanc commented May 21, 2021

It seems that the convert command is killed maybe due to memory limitations or it takes to long. Thereafter, fbv (frame buffer viewer) tries to show the converted image but it is not there or broken...

How often does this happen and how many images do you have?

If it happens because ImageMagicks convert cannot convert one specific file, you should be able to find it by deactivating shuffle (https://github.com/avanc/photOS/wiki/FAQ#how-do-i-deactivate-photo-shuffling) and see which file is never shown.

But I don't have a real clue yet...

@makuris
Copy link
Author

makuris commented May 22, 2021

The error message appears every 10 images or so. I have currently 250 images on the webdav folder. I rotated most of them using irfanview since the image magic trick was not implemented at the beginning.

The raspi is capable of showing really large images >15MB if he does not need to rotate them.

So there are about 25 portrait images that need rotating. I went through and I think they were never shown, so I guess these images cause the error. They were all taken with a smartphone and file size varies between 250KB and 2MB.
I use a raspi zero, so what would be the max. Image size regarding the available memory?

@avanc
Copy link
Owner

avanc commented May 22, 2021

Thanks for the details. I'll take a look into it after the weekend.

@avanc
Copy link
Owner

avanc commented May 25, 2021

@makuris Just to let you know that I can reproduce the problem, but still investigating.

avanc added a commit that referenced this issue May 25, 2021
In some cases, ImageMagick needs more RAM than available on Raspberry Pi Zero.
Thus, image rotation is exchanged with jhead.
Relates to #33
@avanc avanc added the bug Something isn't working label May 25, 2021
avanc added a commit that referenced this issue May 26, 2021
In some cases, ImageMagick needs more RAM than available on Raspberry Pi Zero.
Thus, image rotation is exchanged with jhead.
Relates to #33
@avanc
Copy link
Owner

avanc commented May 26, 2021

@makuris Can you give the prerelease a try: https://github.com/avanc/photOS/releases/tag/v0.3.3-rc1
This should solve the problem.

@ThorstenEisinger
Copy link

Seems to solve the problem for me with a Raspberry Pi Zero W. Thanks for the quick fix.

@makuris
Copy link
Author

makuris commented May 26, 2021

It now rotates all images correctly and no more error messages. This is awesome, thank you so much!

@avanc
Copy link
Owner

avanc commented May 28, 2021

@makuris and @ThorstenEisinger : Thanks for the quick feedback.

I just released 0.3.3 with the fix of the release candidate.

@avanc avanc closed this as completed May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants