TarheelGrad1998 / gallery-card

A custom card for Home Assistant that will display images and/or videos from a folder in the style of a gallery.
97 stars 30 forks source link

failing when calling more than 70 images #74

Open dharvey242 opened 8 months ago

dharvey242 commented 8 months ago

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.