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

failing when calling more than 70 images #74

Open
dharvey242 opened this issue Oct 17, 2023 · 1 comment
Open

failing when calling more than 70 images #74

dharvey242 opened this issue Oct 17, 2023 · 1 comment

Comments

@dharvey242
Copy link

dharvey242 commented Oct 17, 2023

Hi, thanks for the code. Generally everything works as expected. However I have a folder that has around 150 images. I get the error - invalid path when I raise the maximum_files level beyond 70 images. Anything less than that works fine. I've resized the images so they're less than 250kb each.

My yaml is

type: custom:gallery-card
entities:
  - path: media-source://media_source/local/picture_frame/Pictures
maximum_files: 70
show_reload: true

If I leave out the maximum_files parameter then it also throws the error.

Whether it makes a difference but the files are held in on another device and added as media source in HA.

Just noticed some of the files have the extension *.jpeg rather than *.jpg. Could that be a factor?

All help is appreciated.

@frops83
Copy link

frops83 commented Oct 18, 2024

although the post is surprisingly exactly a year old... I have the same problem. The media source component itself seems to work as intended since I can open the files in the media library but the gallery component shows the error when there are 70 or more images in the directory

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