797 points · by radialapps · 2y ago · 230 comments
Website: https://memories.gallery/
GitHub: https://github.com/pulsejet/memories
Demo Server: https://demo.memories.gallery/apps/memories/ (demo runs in San Francisco on a free-tier cloud vm)
Memories has been built ground-up for high performance and is extremely fast when configured correctly. In our testing environment, it can load a timeline view with 100k photos in under 500ms, including query and rendering time!
Some features to highlight:
* A timeline similar to Google Photos where you can skip to any time in history instantly.
* AI-based tagging that runs locally on your server, identifying and tagging people and objects.
* Albums and external sharing.
* Metadata editing support
* A world map of your photos, supported both on mobile and the web
* Did I mention it's extremely fast?
Would love to hear feedback from the HN community! :)
> No Lock-In
> Memories stores most of the metadata in the EXIF headers of your photos, which means that you can easily migrate to other solutions without losing your data. It also utilizes your existing filesystem structure for organization without converting it to any specialized format
Given that, would a standalone version be feasible, i.e. one that doesn't rely on Nextcloud and only operates on a folder on disk? I mean, while Memories might not lock you in, Nextcloud can still do so. (No two-way sync etc. etc.)
Currently, I just use Syncthing to synchronize all my files across devices (laptop, phone, home server, …) and it works splendidly! Ideally I'd just want to run Memories either locally (on the local copy of my photos folder) or on my home server (on the home server's copy of my photos folder).
I wrote a bit on why Nextcloud a while back, I'll link it here (see point 5 in FAQ): https://memories.gallery/faq/#faq
As such, Nextcloud doesn't really lock you in; it just provides a framework for the app. You can, theoretically, continue to use Syncthing to sync files while running Nextcloud on top of it (probably not ideal though)
I want to note though, the "no lock-in" philosophy refers more to being able to move out of Nextcloud/Memories at any point if you want. Nextcloud still just stores everything on your disk as folders and files, so you can just decide to nuke it one day and still have everything (not fully true yet, you'll still lose some things like tags and albums; exporting these out too is WIP)
I think for an open-source and/or self-hosted solution to come close to an approximation of google cloud/iCloud/whatever we need projects like this to be able to pick their niche and hyper-focus on it, which leaning on Nextcloud does in this case I feel.
For what it's worth, I think for people like me (who already use Syncthing and Tailscale), all the reasons the FAQ mention for why Nextcloud is really necessary (auth, file upload, etc.) are already covered, which is why I'd be so interested in something a little bit more lightweight.
(As an aside, I am not sure I agree on the "Nextcloud upgrades are seamless" part – every time I've had to upgrade a Nextcloud instance so far I was in for a world of pain.)
Anyway, I wish you tons of success with your project! :) It might be what will push some of my family members to leave Google Photos and/or Dropbox, and that would be a huge win already!
I found have read the note but how can a dev agree to have an upgrade started knowing it will fail and fuck up the db??. Thank you borg for the backup.
It is such a mess in their container that they could not agree on how to get the real IP being looked.
This is really crappy software.
Syncthing is fantastic and just works (right after you get your PhD in syncthingology because, man, it is complicated when you start)
Is my data encrypted?
Thank you!
Combining it with "The Search Page" app makes it a quite comfortable experience as is.
Other than that it's just installing a Nextcloud app and pluging in a URL and API key
Now, if you worry about some use you wouldn’t like… These are declared in open, if possibly too large, text in all the privacy policies. As a Googler I can tell you the internal bureaucracy for upholding these is dead serious. My product is used only by Google employees in their work duties, yet it took a couple months for us to get access to stats of our own UI. Something like an ads subsystem wanting to read a photos data field is likely to involve quarters of disputes with multiple lawyers.
- Does the metadata editing allow it to write back to the file, storing the edited metadata in a sidecar or in the EXIF data? - Does it support some kind of auto-stacking? E.g. having raw files alongside exported tiff/jpg and recognizing that they are the same file? Especially for a nextcloud based solution, that'd be awesome
I see "external sharing" is mentioned but haven't found more information on that. Ideally I'd want the option to share an album with password protection, doesn't require an account to view, and allows comments on photos. Bonus would be to have a running album feed with view receipts per account.
I know that's a lot but wanted to be specific. I'm ready to migrate but haven't found a platform that has feature parity on this front.
The reason I pay for tons of extra Google photos storage is it tags and uploads and pics of my kiddos to an album shared with all the grandparents. It's their favourite app in the world and I'm never allowed to cancel.
Could I replicate that here?
Albums: partial support. You can share links to albums that are viewable or share albums with others with an account on your nextcloud instance. People who have an account can upload photos to the shared albums.
Edit: It doesn't change the fact that the behavior is creepy though. Maybe that's the criticism.
I installed this, indexed the photos, etc, but I still get lots of grey boxes (photos not loading) when I browse. Am I missing something, or is my server just too slow for this?
EDIT: I think my server is just too slow. The entire machine freezes when loading one of the photos.
Also note there are some extra config steps for the preview app (initial run, cron job). See https://github.com/nextcloud/previewgenerator
Also, is there a mobile app? Most of the time when I look at pictures I am on the phone
If you need the AI features those require separate apps and depending on your deployment it might need some effort. I'm running a docker image and had to ensure I have some of the required libraries for the AI things to work. It isn't too hard to misconfigure though and I believe there's a decent amount of resources for this.
As for mobile app, there isn't an explicit one but the webapp interface is mobile friendly and works pretty well. I also use NC photos and it still works with the tags and face recognition things. That app doesn't require "Memories" as far as I know.
F-Droid Link: https://f-droid.org/packages/gallery.memories/
GitHub releases:
If I take photos with my phone, I have to manually upload them to NextCloud?
For mobile compatibility Nextcloud is better since you can choose which folder photos go to and you can essentially automatically backup albums whereas with Immich you can't automatically specify which album photos from a directory should go [1].
In addition to this, Immich isn't too stable yet and each time you update the server all clients have to be on the latest version, at least since the last time I used Immich.
- Immich supports external libraries
- Use docker compose and never worry about versions breaking
You're correct, Immich does support external libraries. To be more elaborate with my original comment, I meant inbuilt apps of Nextcloud which integrate well and complement the memories app. An example app would be the Face recognition one or Recognize if you fancy a different implementation. Nextcloud is after all an ecosystem so using memories gains you the other benefits of such an ecosystem. This might be overkill for some so it's upto your usecases.
Versions breaking is an issue since both mobile and server clients have to be on the same version. Compared to Nextcloud Memories this is not an issue. This was an issue when I've last used Immich so this may have changed since then.
The last time I looked, Immich can’t work with a existing file and folder structure without importing (copy) everything in his own structure (database). That’s a big no go for me.
In Memories, the file structure of your photos is preserved as-is. And you can run it alongside with other solutions that respect your folder structure.
EDIT: looks like Immich can work with external folders. But: Does it put pictures from my phone in that external folder or in its own folder?
Many rely on this "issue" to prevent people from swiping to photos they're not supposed to see - a common enough occurence when showing someone a photo on your phone.
Users will always find a way...
I feel this is a common problem and there could be a solution like long-press pop a menu that allows you to lock 'just this pic' until photos is closed and reopened.. or select 'pics from just today' or 'pics just from the past XX minutes'
Or something, this issue is huge in a lot of circumstances.
It's FOSS and I only work on this in my free time, so please keep the bug reports coming as you run into them! :)
Ente is commercial, Memories is free
Ente is focused on E2EE, Memories is focused on self-hosting.
I know nextcloud has some federation features, but I have no idea if that could be put to work based on some exif criteria or other file metadata.
For all I know this could be a killer feature that would be enough on its own to motivate the nextcloud plugin vs standalone decision, or it might be completely useless as in federation only based on entire folders.
Minor feedback: could you update the text or image to link to nextcloud? I know nothing about nextcloud, the project mentions it and I wanted to read more.
I have my gallery still online these days, with a fork so that PHP8 still works with it, but I've had to hide it behind an IP Access list now because I don't trust it being public facing anymore.
I don't mean to shit on this project, I hope it's massively successful. We need more awesome open source apps like this. But I've been burnt once already pouring my heart and soul into an open source image gallery so I'm not going to do it again.
In hindsight I wish I'd put all my photos in Flickr (I thought I was being so clever using Gallery) because it's stood the test of time that Gallery didn't. These days I use Google Photos, I can't see it going away anytime soon (though of course it's Google so who knows)
Sorry this rant is probably very offtopic. The product itself looks amazing and I DO hope it achieves the success that Gallery couldn't.
Doing photos is one thing, but doing it to scale and also with high performance at the client is a very nice accomplishment.
There's a mobile app for Android: https://play.google.com/store/apps/details?id=gallery.memori...
On iOS, you can use the PWA ("add to homescreen") and it behaves almost exactly as a native app
Seems that it is possible to get it mostly working based on this issue: https://github.com/pulsejet/memories/issues/110
A big part of the problem, it seems, is that, when you have a large library, and you jump/scroll to a specific year or so, it won’t cancel the previous page(s) worth of thumbnails loading. So as soon as you’re scrolling to search for something, it quickly accumulates hundreds of useless requests that quickly overload the PHP workers, and make everything crawl to a standstill.
I personally had to give up. When trying to grab photos from abroad for my shortly upcoming proposal, I’ve literally deleted Nextcloud/Memories, plopped Immich in docker compose, let it index/transcode/generate thumbnails from scratch against my “external library” (so Immich doesn’t duplicate the medias), and that ended up savings me days of buffering, and was able to find the nice pictures for the occasion!
(R740xd with 48 cores and 96TB SSD-backed ZFS pool)
Thumbnail caching exists (it's even highly configurable), there's absolutely zero buffering even with 100k photos+ on a raspberry pi. You obviously did not read the documentation or install the preview generator (which the docs clearly tell you to)
Your deployment skills are hot garbage
EDIT 3: ^the last line was in response to something that has been edited out of the original comment
EDIT: the comment this is in reply to was edited multiple times. This is pointless and a lot of it is just false.
EDIT 2: (at least currently the previous comment claims unnecessary PHP requests) this only happens if your configuration is incomplete; you didn't install preview generator as the docs say. Secondly it happens exactly once, the first time you see the image. All other requests are gracefully cancelled.
And it’s only “pre-optimized” if you are cool with PHP memory limit crashes, PHP operation timeouts, PHP request size limits, and the works.
Another joy associated with using Nextcloud sync is that uploads don’t even seem to support multi-part resumable uploads. So not only is it crazy slow, if there’s any error during the auto-upload of a 2G video clip, or the app is temporally backgrounded by iOS, it’ll go into an exponential back off (which you can force start), and eventually just start the upload for that/those file(s) over from scratch - good ways to waste days burning in your screen while in a trip and trying to ensure your medias are backed up in case you lose your phone on a trip. Try uploading raw images & 4k clips shot on iPhone to Nextcloud using the Nextcloud app + the AIO image from abroad.
I’m telling you, I’ve tried to use them for quite some time, and I’m far from DevOps-illiterate - I’ve been using k8s since it’s infancy, we wrote the original Operators at CoreOS way back.
Otherwise, mostly all of this is just false. I routinely upload massive files (both RAW and 4K, yes) with almost default configuration and it just works. You also lied with "no thumbnail caching" in the first comment, no idea why.
I'm looking forward to the Android app being available in an F-Droid repository!
Three questions:
1. Can we do multiple person search? Eg: photos with Person A and Person B?
2. Any plans for descriptive search using CLIP or any of the existing neural networks out there?
3. I see we can edit the exif description, but maybe can we have a custom caption box? eg: "Mum and Dad in 1993". Ideally that would also be available for search, and it would appear more explicitly when browsing photos (kind of like a real album with the notes written next to each photo).
The result: each request overall only takes a few milliseconds for the hardest part, the rest of the optimization is a game of caching.
Preferably on the cheapest vps with s3 backend
Minimum requirements are quite low. Mainly you need memory to get good performance (at least 4GB, say). CPU-wise it runs fine with massive libraries even on RPi.
I don't recommend S3 as external storage though; the Nextcloud implementation is quite finicky. Unless you can mount that and use it inside docker, that would work fine.
EDIT: features like AI are all optional.
My biggest complaint about Mylio is there is still no automatic synchronisation from Android. You have to leave the app open for it to sync.
Wondering if the Memories Android app can handle both of these points?
The Nextcloud app is used for auto-upload, that does support background upload at least on Android.
OpenAI open sourced CLIP a couple of years ago: https://github.com/openai/CLIP and I was planning to write something myself to index my vast photo library but got too lazy and gave up.
Two bugs stood out to me immediately:
1. Tapping on the i button does nothing.
2. After clicking around on some images, the back button was mostly useless until I pressed it like 10 times. I think it works for album navigation but stops working when you start photo navigation.
Off topic: what’s the best desktop application that allows that? A lot of my pics in my iPhone are still there because of this feature, but if there’s a program that does the same on windows/linux, I will be happy to use instead.
It did some things well, but I did not complete the mission for reasons I can't recall.
I think powertoys->Text Extractor
and other windows apps have this built in now, including the built-in win 11 'snipping tool' - ( https://www.windowscentral.com/software-apps/windows-11/what...
I was reading that MSsoft preinstalled Edge browser has " Enable Edge Screenshot Tool with Copilot, OCR and Search" - but I am unsure if this is on device or shared to cloud.
It is a huge step up from the default photo's app in Nextcloud. Absolutely wonderful stuff.
I've been trying to find a way out of google photos... but that auto OBJECT and face tagging is a so useful. I can search for car and get cars, or dog and get dogs etc I look forward to testing this out!
Awesome, this is the main piece of puzzle I (or rather: my wife) miss from Nextcloud (the default Photos has terrible performance and lacks some features). Gonna set it up. Also nice to see Face Recognition app is used. Now I'm gonna have to edit my docker-compose.yml for the dependencies but that is fine.
Also, I've been trying Photoprism and also I tried Immich in past. They have disadvantages: they don't sync with whatever got uploaded to Nextcloud and they either do not have a mobile front-end or it is some web app. They also have stability issues, though I had most success with Photoprism.
I suppose it won't be as useful to me as it could be as I'm stripping all EXIF data from any photo uploaded by Nextcloud because I fear my wife stupidly just shares whatever when she should not. Yes, I know you can do OSINT analysis anyway, but that is a skill as of yet.
I like it very much.
That said, to each their own, thanks for sharing.
https://github.com/scubajeff/lespas - comes with built-in two-way sync with Nextcloud server
(no affiliation, just a curious Nextcloud user)
The facial recognition is subpar and performs worse the more faces you tagged, but it's always the users fault somehow, instead of accepting that yes even though you put a lot of work and effort into it, the result might be bad.
Then somehow immich comes along and manages to basically become a better photoprism over night because it's somehow just a well managed project accepting a lot of contributions without the code turning into complete shit.
I don't know what to say. I'm still a sponsor of photoprism bot it seems the guy running it is his own worst enemy in some ways.
Sometimes it works, but sometimes the project is just too big, I think.
https://play.google.com/store/apps/details?id=gallery.memori...
No affiliation, just a happy consumer.
When you say "Yes, it's OSS so you can just do it yourself" it's generally viewed as snarky and misleading, as the question wasn't "can I modify it" but "is it available already in another form?" It's just not helpful to anyone to word it like that backwards manner.
By contrast, when I tried to install it manually, the distribution install scripts broke on the second run, on changes that the very same script made on the first run. Anti-idempotent, I dropped it with the impression of drumming up hosting or consulting business.
I'm looking at this Memories now, but I don't like first page, sorry, with all photos is small and divided with white spaces and dates...
But I don't need any metadata editing, AI and mobile apps, I need gallery for high-quality photos to view on big screens.
Memories looks like a nice alternative, anyone using Lychee here with a comparison?
I guess other important point is to store originals as well (or maybe even rendering originals directly). and also RAW format for audio video.
then comes question on handling 250GB+ videos and libraries for TBs sizes
Apple Photos rocks in all of the above. and it also works excellently offline.
to beat it you have to really solve those problems..
As far as "beating" Apple, I'm ready to bet that'll never happen (not just with this project but any really). A small open source project can't really compete with a $2T company
(AFAIK latest browsers still do not support HDR photos.. so guess would be hard to implement in open source those).
Hopefully it changed a lot in the meantime because I would really like this to be integrated into NextCloud.
I the meantime, I'm really happy using Immich