New releases of librephotos/librephotos are posted here automatically.
Join @releases-librephotos to get a DM and a bell for every release.
New releases of librephotos/librephotos are posted here automatically.
Join @releases-librephotos to get a DM and a bell for every release.
This release brings a photo editor that works on RAW files too, search that shows the best match first and understands dates, people and places, and LibrePhotos on your desktop: a picture viewer in the Microsoft Store, an installer for the Windows app and a new Mac app. The server needs far less memory and picks how hard it works from the machine it runs on, photos can be shared with links that expire, and nine languages are now complete.
Who should update: Everyone. This release fixes no published security problem, so there is no extra rush for servers with several users, but it fixes many errors that 1.6.0 servers reported.
What’s new for you:
e, or click Edit, to crop and straighten it, pick a filter, or work on light and colour. Simple has a few plain sliders, Advanced has every control, also for RAW files. Your original file is never changed: an edit is kept as settings, and Revert to original… takes it back. See Editing photos.Halloween 2022, sea in France, or the name of a person you named. Words in the app’s language find things too, so Strand finds beaches in German. Find similar photos in the photo viewer’s More actions finds photos like the one you look at. See How results are ranked.Before you update: Make a backup as usual. Background jobs now run on a new task queue; jobs waiting in the old one carry over by themselves.
After you update:
options startup parameter. If LibrePhotos reaches PostgreSQL through PgBouncer, add options to PgBouncer's ignore_startup_parameters, best before you update, or PgBouncer refuses the backend's connections (details). Memory allocator: the Docker images start every process with MALLOC_ARENA_MAX=2 and MALLOC_MMAP_THRESHOLD_=131072; set either to an empty value to get glibc's default back (details). Workers: workerConcurrency (WORKER_CONCURRENCY) still sets the number exactly; up to 1.6.0 the default was one worker per core of the host, whatever the container limit. WEB_MAX_REQUESTS now defaults to 10000 instead of 50 (backend image) and 2000 (single container). Error reports: reports shared with the maintainers now go to errors.librephotos.app instead of the old GlitchTip host; allow it if your firewall filters outgoing traffic (details). Demo mode: DEMO_SITE=true now makes the whole server view-only, for admins too (details). Kubernetes: the manifests in deploy/k8s run 1.7.0. API: GET /api/photos/searchlist/ answers one flat list, best match first, for users with semantic search on, which is now nearly everyone; sort=newest or oldest orders the same matches by date. The /media/square_thumbnails_small/ addresses still answer, with the square thumbnail.Upstream:
Frontend: A Photo Editor, RAW Files Included
The web app has a non-destructive photo editor (#2999). Simple mode has Auto, nine plain sliders, twelve filters with a strength slider, and crop, aspect ratios, straighten, rotate and flip. Advanced mode, in the style of Lightroom, adds a histogram, a tone curve, white balance, an eight-band colour mixer, black and white, colour grading, texture, clarity, dehaze, grain, sharpening and noise reduction, presets, and copy and paste of an edit between photos. Every change is a step in a history of up to 200 steps that is saved with the edit, so undo and redo work again after a reload and on another device. An edit is a short list of settings stored with the photo: the browser previews it with WebGL 2, and the server renders the same settings from the original, so the thumbnails, the viewer, downloads and shares show the edited picture while the file stays as it was. RAW files are developed on the server from their RAW data with FlashRaw, 5 to 9 times faster than LibRaw, which takes over for files FlashRaw cannot read (#3063 adds Nikon’s High Efficiency NEF). Canon CR3, Fujifilm RAF, Olympus ORF and Panasonic RW2 can now be uploaded through the web app too (#3064). Face boxes follow a crop or a turn, and people you share with only ever get the edited picture. See Editing photos.
Backend: Search Finds What You Mean, Best Match First
Search used to add the photos found by meaning to the word matches in no particular order, grouped by date. It is now one list ranked by reciprocal rank fusion of the word matches and the CLIP matches (#3128). Years, months, seasons, this year and last year, the people you named and your places become filters, with the photos of a place first and matches without a location after them, since most cameras record none. Words must match whole and count by where they appear: a person’s name weighs most, then the place, things and tags, captions, the text in a photo and file paths, so car no longer finds a folder called cards. Words in the app’s language are looked up in the Weblate translations of the 512 things, so Strand, plage and spiaggia find beaches, and libraries shared with you are searched by meaning too, under their owner’s sharing switches. Find similar photos ranks the library by likeness to one photo. On a private set of 2,206 photos and 144 judged queries, nDCG@20 went from 0.27 to 0.77. Semantic search is on by default now, and the text model stays loaded in memory-mapped form, so the first search after a pause no longer waits seconds for it to load, as it did in 1.6.0 with semantic search on (#3147). See Search.
LibrePhotos: On Your Desktop, on Windows and on the Mac
LibrePhotos Viewer is a new desktop app for Windows and macOS, a preview (#3062). It opens JPEG, HEIC, AVIF, JPEG XL, PNG, WebP, TIFF and camera RAW files at once, with a filmstrip, zoom to 100 % and tiles for very large pictures. It keeps a library of the folders you add, in place and watched, searches them, and writes ratings, captions and keywords into XMP sidecars that LibrePhotos, digiKam and darktable read. Signed in to a LibrePhotos server it backs up those folders, skips what the server already has, and shows what the server found. It works without a server and sends nothing anywhere on its own (privacy policy). It is in the Microsoft Store (#3115, #3148), and every release now carries its Windows installer and a Mac disk image (#3069, #3070, #3119, #3122). The on-device database moved into a package that the mobile app and the viewer share (#3065). The server itself now has a per-user Windows installer, LibrePhotos-Setup.exe, without administrator rights, and an unzipped copy can move into it from the Admin area without losing anything (#3116). LibrePhotos Server is also a Mac app for Apple silicon: a menu bar icon, opt-in Open at Login, and the same built-in updater as on Windows, with the previous release kept as the way back (#3120). See Desktop app, the Windows app and the Mac app.
Backend: A Task Queue of Our Own, and a Server That Fits Its Machine
Background jobs run on a task queue that LibrePhotos owns, in its own database tables, instead of django-q2 (#3076, #3085, #3088). The number of workers follows what the server or container may use, read from its cgroup limits, and the Parallel workers choice in the first-time setup and the site settings (#3078, #3090, #3093). Scan Faces works in batches of 64 photos, and each heavy worker gets a face service of its own (#3089, #3097). Only the workers of the current width run, workers start for work and stop after 30 seconds without it, the Docker images fork their task and web workers from a process that loaded Django once, and they set glibc’s allocator to give memory back (#3144, #3147). Measured on the same machine, the backend container needs 24 to 62 % less memory than 1.6.0 in every scenario: about 600 MB instead of 800 MB idle, and 1.6 GB instead of 2.9 GB at the peak of a scan. PostgreSQL’s JIT compiler is off for the backend’s connections, since it spent up to a second compiling queries that run in milliseconds, and SQLite keeps its planner statistics current, which took Scan Faces on a fresh 100,000-photo database from seconds per saved face to milliseconds (#3072). Reported by metamountain (#3071). Every change to the database since 1.6.0 is now rehearsed in CI on a database made by the released 1.6.0 image, on PostgreSQL and SQLite, which found and fixed an upgrade failure on PostgreSQL before it shipped (#3141). See Limiting CPU and memory usage.
LibrePhotos: Fewer Dependencies, No Known Vulnerabilities
About thirty third-party packages were replaced with small code of our own or the standard library, among them PyExifTool, FAISS, pyocclient, pytz, timezonefinder, gevent, Flask, django-cryptography, lodash, motion, recharts, tiptap and the Mantine date pickers, in pull requests from #2978 to #3092. The ExifTool client has timeouts and no longer hangs on a dead ExifTool, the similarity index is a memory-mapped file that no longer peaks at several GB on a million photos, and ffmpeg and OpenCV are minimal builds of our own: about 280 MB less in the x86_64 image (#3083, #3087, #3095). The backend images moved from Ubuntu to Wolfi, and Trivy now finds no known vulnerability in any of the five images, against 44 to 571 before, with scans in CI that keep it that way (#3117). The web app loads less up front: the photo viewer, its map and its caption editor load when you open them (#2986, #3079).
…