rakekniven / memories

πŸ“· Yet another photo management app for Nextcloud

Home Page:https://apps.nextcloud.com/apps/memories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memories

πŸ“· Yet another photo management app for Nextcloud

Screenshot

How is this different?

  • πŸ“Έ Photo and Video Timeline: Sorts photos by date taken, parsed from Exif data.
  • πŸ€” Quick Recap: Jump to anywhere in the timeline instantly.
  • πŸ–ΌοΈ Folders: Browse your and shared folders with a similar, efficient timeline.
  • 🎦 Slideshow: View photos from your timeline and folders easily.
  • πŸ“± Mobile Support: Relive your memories on devices of any shape and size through the web app.
  • πŸ—‘οΈ Recycle: Select and delete multiple photos and videos at once.
  • ✏️ Edit Metadata: Edit Exif dates on photos quickly and easily.
  • πŸ“¦ Archive: Store photos you don't want to see in your timeline in a separate folder.
  • ⚑️ Fast: Memories is extremely fast. Period. More details below.

πŸš€ Installation

  1. Install the app from the Nextcloud app store
  2. βš’οΈ Install exiftool (see below).
  3. Run php ./occ memories:index to generate metadata indices for existing photos.
  4. 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.
  5. Installing the preview generator for pre-generating thumbnails is strongly recommended.

πŸ”¨ Installing Dependencies

The exact steps depend on your Nextcloud platform. If you use Docker for your Nextcloud instance, you can install Exiftool by using a custom docker image.

  • Ubuntu/Debian: sudo apt install libimage-exiftool-perl
  • Fedora: sudo dnf install perl-Image-ExifTool
  • Arch Linux: sudo pacman -S perl-image-exiftool
  • Alpine: apk add --no-cache exiftool
  • MacOS: brew install exiftool
  • FreeBSD: sudo pkg install p5-Image-ExifTool

πŸ— Development setup

  1. ☁ Clone this into your apps folder of your Nextcloud.
  2. πŸ‘©β€πŸ’» In a terminal, run the command make dev-setup to install the dependencies.
  3. πŸ— Then to build the Javascript whenever you make changes, run make build-js. To create a pull request use make build-js-production. Watch changes with: make watch-js.
  4. βœ… Enable the app through the app management of your Nextcloud.
  5. πŸŽ‰ Partytime!

πŸ€” Why a separate app?

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.

⚑ Performance

  • Once properly configured, Memories is extremely fast, possibly one of the fastest web photo viewers.
  • 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.
  • For best performance, install the preview generator and make sure HTTP/2 is enabled for your Nextcloud instance.

πŸ“ Notes

  • 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.
  • 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.
    • If you add any photos from outside Nextcloud, you must run the scan and index commands.
    • 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.
    • This function is experimental and may not work as expected. Please report any issues.
  • 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.

Special Thanks

Nextcloud team. At least one half of the code is based on the work of the Nextcloud Photos.

About

πŸ“· Yet another photo management app for Nextcloud

https://apps.nextcloud.com/apps/memories

License:GNU Affero General Public License v3.0


Languages

Language:Vue 32.7%Language:PHP 29.2%Language:JavaScript 22.9%Language:TypeScript 14.5%Language:Shell 0.5%Language:Makefile 0.2%Language:Hack 0.0%