this post was submitted on 28 Jul 2023
39 points (95.3% liked)

Selfhosted

61265 readers
245 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

So here's my situation. I've been looking for a long time for a self-hosted photo library. I have pretty low requirements: I just want it to be able to show the videos and images I have stored on my NAS in a random order, and to support a slideshow of those files, also in a random order.

I thought I had finally found what I was looking for with PiGallery2 -- it supports a hidden file that triggers the random order sorting -- but it's not stable. It works for a while and then takes ages and ages to refresh the album.

Synology Photos would have been perfect, but it can't randomize!

Any suggestions? I'm looking to host this on Debian.

top 11 comments
sorted by: hot top controversial new old
[–] Anafroj@sh.itjust.works 23 points 3 years ago* (last edited 3 years ago) (1 children)

Solving it the unix way:

ls -1 | sort -R | sxiv -f -s f -S 5 -

So it's ls -1 to list the content of current directory (presumably where your pictures are), with one file per line, so we can then pipe it to sort, with the -R option to sort randomly, then piping the result to sxiv, a lightweight image viewer available on most distro (I just checked, it's available on Debian). For its options : -f means it's fullscreen, -s f makes it scale to fit the image on screen as well as possible, -S 5 tells it to start in slideshow mode and change picture every 5 seconds, and - is to tell it to take the files list from stdin (thus from the ls and sort commands).

This won't work for videos, though, only pictures.

[–] NullPointerException@lemm.ee 4 points 3 years ago

beautiful solution

[–] alba70r@lemmy.ca 8 points 3 years ago
[–] shnizmuffin@lemmy.inbutts.lol 7 points 3 years ago (1 children)

Probably nobody's first guess, but Plex can do this, no problem. It's quietly robust.

[–] RotaryKeyboard@lemmy.ninja 2 points 3 years ago

I've actually used Plex for this before, but I was looking for something simpler. Good call, though!

[–] tko@tkohhh.social 3 points 3 years ago (1 children)

Take a look at Photostructure... I think that will meet your requirements!

[–] morethanevil@lmy.mymte.de 3 points 3 years ago

Looks good, here is a link for everyone Photostructure

[–] ErnestoGrimes@lemmy.world 2 points 3 years ago

you can use qiv , it's in the repos

[–] VelociCatTurd@lemmy.world 1 points 3 years ago (1 children)

You didn’t say anything about price, so I’m going to offer Chevereto.

[–] RotaryKeyboard@lemmy.ninja 1 points 3 years ago

Sadly, this doesn't appear to have a slide show feature.

[–] rambos@lemmy.world 1 points 3 years ago

If you want slideshow on android device, there is an app on gstore called photocloud. It can play from shared folder or nextcloud for example. Looks outdated but it has features you want. There is a downside tho

Pricing

Pricing: free version shows a “please purchase” images once a while during the slideshow. There is an in-app payment which removes these images. Another payment unlocks the “Daydream” functionality; this only works on Android 4.2 and higher, don’t purchase if you have Android 4.1 or lower.

Not exactly what you asked but it might be usefull

load more comments
view more: next ›