memories/README.md

56 lines
4.3 KiB
Markdown
Raw Normal View History

2022-10-16 04:45:29 +00:00
![Screenshot](appinfo/screenshot.jpg)
2022-08-18 03:36:37 +00:00
2022-10-20 00:35:03 +00:00
## Photo Viewer and Manager
Memories is a photo management app for Nextcloud with advanced features including:
2022-08-13 01:58:37 +00:00
2022-10-20 00:35:03 +00:00
* **📸 Timeline**: Sort photos and videos by date taken, parsed from Exif data.
2022-10-20 00:38:23 +00:00
* **⏪ Rewind**: Jump to any time in the past instantly and relive your memories.
2022-10-07 20:07:38 +00:00
* **🤖 AI Tagging**: Group photos by people and objects using AI, powered by the [recognize](https://github.com/nextcloud/recognize) app.
2022-10-20 00:35:03 +00:00
* **🖼️ Folders**: Browse your own and shared folders with a similar, efficient timeline.
2022-09-08 23:57:50 +00:00
* **🎦 Slideshow**: View photos from your timeline and folders easily.
2022-10-20 00:35:03 +00:00
* **📱 Mobile Support**: Works on devices of any shape and size through the web app.
2022-09-25 15:06:27 +00:00
* **✏️ Edit Metadata**: Edit Exif dates on photos quickly and easily.
2022-09-25 23:26:17 +00:00
* **📦 Archive**: Store photos you don't want to see in your timeline in a separate folder.
2022-09-13 03:42:02 +00:00
* **⚡️ Fast**: Memories is extremely fast. Period. More details below.
2022-08-13 01:58:37 +00:00
2022-10-07 21:08:05 +00:00
## How to support development
* **🌟 Star this repository**: This is the easiest way to support the project and costs nothing.
* **🪲 Report bugs**: If you find a bug, please report it on the issue tracker.
* **📝 Contribute**: If you want to contribute, please read file / comment on an issue and ask for guidance.
2022-08-16 01:28:40 +00:00
## 🚀 Installation
2022-08-13 01:58:37 +00:00
2022-10-20 20:45:00 +00:00
1. Install the app from the Nextcloud app store.
1. Run `php ./occ memories:index` to generate metadata indices for existing photos.
2022-08-20 01:07:39 +00:00
1. Open the 📷 Memories app in Nextcloud and set the directory containing your photos. Photos from this directory will be displayed in the timeline, including any photos in nested subdirectories.
2022-09-12 06:22:56 +00:00
1. Installing the [preview generator](https://github.com/rullzer/previewgenerator) for pre-generating thumbnails is strongly recommended.
2022-08-13 01:58:37 +00:00
2022-08-16 01:28:40 +00:00
## 🏗 Development setup
2022-08-13 01:58:37 +00:00
2022-08-16 01:28:40 +00:00
1. ☁ Clone this into your `apps` folder of your Nextcloud.
1. 👩‍💻 In a terminal, run the command `make dev-setup` to install the dependencies.
2022-10-20 20:45:00 +00:00
1. 🏗 Then to build the Typescript whenever you make changes, run `make build-js`. Watch changes with: `make watch-js`.
2022-08-16 01:28:40 +00:00
1. ✅ Enable the app through the app management of your Nextcloud.
1. 🎉 Partytime!
2022-08-13 01:58:37 +00:00
2022-09-13 07:41:06 +00:00
## 🤔 Why a separate app?
2022-08-16 01:59:28 +00:00
The approach of this app is fundamentally different from the official Nextcloud Photos app, which is very lightweight and works entirely using webdav. This app instead maintains special metadata in a separate table on the backend, and thus can be considered to have different objectives.
2022-08-13 01:58:37 +00:00
2022-09-13 07:41:06 +00:00
## ⚡ Performance
2022-09-13 18:49:10 +00:00
- Once properly configured, Memories is **extremely fast**, possibly one of the fastest web photo viewers.
2022-10-17 03:23:47 +00:00
- On a server with relatively cheap hardware (`Intel Pentium G6400 / 8GB RAM / SSD`), loading the timeline takes only `~400ms` without cache on a laptop (`Intel Core i5-1035G1 / Windows 11 / Chrome`) for a library of `~17000 photos` totaling `100GB`. The test was performed on Nextcloud 24 with `nginx`, `php-fpm` and `mariadb` running in Docker.
2022-09-13 03:42:02 +00:00
- For best performance, install the [preview generator](https://github.com/rullzer/previewgenerator) and make sure HTTP/2 is enabled for your Nextcloud instance.
2022-09-13 07:41:06 +00:00
## 📝 Notes
2022-09-13 03:42:02 +00:00
- You may need to configure the Nextcloud preview generator and Imagemagick / ffmpeg to support all types of images and videos (e.g. HEIC). If using the official docker image, add `OC\Preview\HEIC` to `enabledPreviewProviders` in your `config.php`.
- If local time is not found in the photo (especially for videos), the server timezone is used.
2022-09-24 02:58:12 +00:00
- All photos in the timeline _must_ be on a single storage. For example, you cannot have a mounted directory inside your photos directory.
- The app can work with external storage for photos. Just set the mountpoint as the timeline directory.
2022-09-13 18:49:18 +00:00
- If you add any photos from outside Nextcloud, you must run the scan and index commands.
2022-09-15 01:26:56 +00:00
- Indexing may be slow, since all files must be downloaded from the storage. The app currently assumes that the Exif data is present with the first 20MB of each file.
2022-09-13 18:49:18 +00:00
- This function is experimental and may not work as expected. Please report any issues.
2022-09-25 23:43:32 +00:00
- The archive feature moves photos to a separate folder called `.archive` at the root of your timeline. You can use this, for example, to move these photos to a cold storage.
2022-08-16 02:13:04 +00:00
2022-09-13 07:41:06 +00:00
## Special Thanks
2022-08-16 01:28:40 +00:00
Nextcloud team. At least one half of the code is based on the work of the [Nextcloud Photos](https://github.com/nextcloud/photos).