You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
26.49.0
Develop
Base curve: a raw photo can take its base tone from a curve file instead of its camera look's tone or the generic raw curve. Two curves come with the app (see Bundled base curves below); your own are plain JSON in the base-curves folder of the settings folder (or the folder named by <PREFIX>_BASE_CURVES), and the Profile section lists them in a new Base curve row (a filter narrows long lists, Refresh scans the folder again). The format is documented in docs/base-curve-format.md: named curves with linear, monotone cubic or (format version 2) natural cubic spline interpolation, an ordered list of steps (a curve on luminance, a curve on each channel, a mix, and from version 2 an encode and a decode step that let a file carry a whole neutral transfer), an input gain that can leave headroom above the sensor's white, and the extension beyond the last point. This version renders luminance steps and the encode and decode steps; a file with other steps is listed as not supported. The curve replaces the base tone (nothing of the camera look's tone is applied), Contrast, Whites and Blacks act on its output without a shoulder of their own and are exactly the identity at 0, and an HDR edit lifts the highlights above it as for every base tone. A photo whose curve file is missing keeps the choice, renders with the default base tone and says so in the panel and in an export's warnings. The setting (profile.base_curve, an id base:<file name>) is left out of the JSON while empty, so no existing edit or hash changes; the curve file's content is part of the settings hash. Stored in the app's own settings only (nothing is written to crs:); not the Tone Curve tool.
Base curve, channel share: a curve file (format version 2) may set channel_share, 0 to 1 (default 0). With a share above 0 the render blends, by that share, the luminance result (the colour follows by ratio, as before) with the curve run on each colour channel in linear Rec.709 (negative channels as 0), before the hue-preserving highlight clip: saturated mid-tones gain and bright saturated colours roll towards white as with a curve applied per channel. Grey is unchanged, and without the field the render is exactly as before. Done on the CPU and the GPU.
Base curve, colour map: a curve file (format version 2) may carry a colour_map: a chroma gain and a hue shift on a grid of hue, lightness and chroma knots, applied in OkLab after the tone stage (and the highlight clip), fading to nothing for greys and near-greys. It lets a file correct how saturated and how rotated particular hues, tones and saturations come out of the curve. A file without it, or with a map that changes nothing, renders exactly as before. Done on the CPU and the GPU.
Alchemy tool profile: a third built-in tool profile for editing from a base curve. It shows the Base curve row and switches the Tone Equalizer off; every other group stays on, with Primaries and HSL Curves following the grading mode as before. Default and Witchcraft now hide the Base curve row (the option:baseCurve option), and a photo that has a base curve set always shows its row, whichever profile is in use.
Bundled base curves: Linear (the identity) and Soft shoulder (a gentle toe and a soft shoulder with headroom: y = S(G·v) / S(G·V), S(u) = uⁿ / (uⁿ + 1), n = 1.5, G = 4.5, V = 3) are embedded and installed before the base-curves folder, so the selector has them with an empty folder; a file of the same name in the folder replaces them, the selector marks them "built in", shows its filter only for longer lists and says where your own files go. See docs/base-curve-format.md.
Library
Map: saved-location names no longer pile up into an unreadable smear when zoomed out over nearby locations. A name that would overlap one already drawn is left out (the active location first, then the larger locations), and shows as a tooltip on its centre dot; zooming in brings it back.
Auto orient: Photo ▸ Rotate & Flip ▸ Auto Orient (AI) (photo.autoOrient) turns selected photos that are shown sideways or upside down upright, as one undoable library edit, leaving photos it is unsure of alone. It runs the CLIP ViT-B/32 model on four turns of each photo and a fitted 4-way classifier (ml.orientation.fit, ml.orientation.status) (#490).
ONNX Runtime for CLIP: the CLIP vision tower is written as an ONNX graph from the installed weights and runs through ONNX Runtime on the graphics card where the desktop build has it, checked against the CPU encoder, before the wgpu kernels (#491).
Scheduled backups flushed before pruning: a scheduled backup was a plain copy, never flushed to disk, yet the oldest backups were pruned and the "backed up" mark saved right after it, so a power cut soon after quitting could leave a torn newest backup, which the restore hint then named. Each file is now copied, flushed and read back, and the folder flushed, before the mark is saved and older backups are pruned; a backup that fails is removed and the older ones are kept.
The catalog store on an SMB share (macOS): the v4 store (catalog.redb) flushed through the full flush that SMB shares mounted by macOS refuse, with none of the plain-fsync fallback the library's other files have (#1407), so a library there could fail to be created, opened or saved. Its flushes, the log thread's folder flushes, the store's folder flushes and the copy kept before an upgrade now all go through the same fallback. The catalog-upgrade failure message no longer blames disk space alone.
The open's newline fix-up is checked again: a log cut right after a record's bytes gets its newline at open. Since the log has its own writer thread that byte was handed over and counted as written without waiting; if its write failed, the next record was glued onto the last (…}{"seq":…) and the next open dropped both, an acknowledged change included. The open now waits for the byte to be synced and refuses with an actionable error when it couldn't be written (as it did before the log thread).
A rescued change is not replayed twice: after a catalog log write failed, the snapshot that saved the lost and queued changes could be durable while resetting the log after it failed; persist then kept the queued changes and appended them again under new numbers, so the next open replayed them a second time (a duplicate History step; a duplicate added photo counted only as a failure). persist now checks, as closing the library already did, whether the snapshot holds them, and drops them from the queue when it does.
A non-finite value never drops a photo: only the log refused an op holding NaN or infinity; the op stayed applied in memory, and the checkpoint or snapshot at close wrote it as null, so the next open skipped that photo with no message (a web library didn't open at all). Catalog::apply now refuses such an op before it changes anything, and the checkpoint and snapshot refuse to write one, keeping what was saved before. A NaN directly in an optional field (an aperture of 0/0) is still saved as "not known".
Optimise keeps records it couldn't read: a catalog record the library couldn't decode when it opened was left out, counted only in the log, and deleted for good by the next Optimise (from the menu, a script or the scheduled backup) or by the whole rewrite after another program changed the store. Such records are now said at open (and in library.info → load.unreadable), Optimise and that rewrite are refused while there are any, and the scheduled backup is made without its optimise.
Backup pruning deletes only this library's backups: pruning removed, whole and not to the trash, every folder in the backup folder that held a catalog store, oldest name first: another library's backups in a shared backup folder, or a library kept there. A backup now records its library's id, pruning and the "restore from" hint consider only that library's backups (older ones without an id only in the library's own backups folder), and two backups started in the same second get folders of their own.
Replaced files keep their permission bits: every safe_file replace (XMP sidecars, Update DNG, settings files) wrote a new temp file and renamed it over the old one, so a 0600 or 0444 file came back 0644. The new file now gets the replaced one's permission bits (Unix; set-user-ID, set-group-ID and sticky are not carried over). Extended attributes (Finder tags), ACLs, owner and creation date are still not kept, and a hard link to the old file keeps the old content.
Update DNG blanks what it replaces: when the new XMP packet, IFD0 or preview didn't fit where the old one was (the usual first update), it was appended and the old packet, IFD0, SubIFDs list and previews of the app's stayed in the file unreferenced, so a cleared GPS position could still be read by scanning the bytes. They are now zeroed, never touching a byte the file still references.
Update DNG checks every byte before it replaces the file: "only over the file that was read" compared length and modification time, so a same-size edit within a volume's timestamp granularity, or by a tool that keeps the time (exiftool -P), was overwritten, and with no time available only the length was compared. The file is now compared with what was read byte for byte right before the rename (after the new file is written and read back), and a file moved or deleted meanwhile is never recreated.
Update DNG refuses a file whose data runs past its end: the preview, XMP and IFD0 are appended at the end of the file; when a strip, tile or value the file references ran past that end (a copy cut short, a wrong byte count), the new bytes landed inside it, and the read-back check clipped every protected range to the old length and so excused exactly those bytes. Such a file is now refused (by the check before rendering too), and the read-back no longer clips.
Update DNG skips virtual copies: a virtual copy shares its master's file, and Update DNG Preview & Metadata rewrote that file with the copy's XMP and render (once per selected id, the last winning); the next Read Metadata or sidecar-less import then put the copy's edit on the master. Copies are now skipped with the reason, the command is unavailable for a selection of copies only, and a file named by several photos is rewritten once.
Deletions after an upgrading open are saved: opening a library an older build wrote (from the CLI, MCP or the control channel) reopened its store without what had been loaded, so the first save didn't remove photos, albums or stacks deleted after the open (or by the log it replayed). They came back on the next open, and the integrity test then failed at every exit, so no scheduled backup was made. The loaded store is now kept across the upgrade, which also keeps the count of records the load couldn't read, so Optimise stays refused there.
A shared backup folder keeps each library's newest backups: when two libraries backed up into one folder within the same second, a later backup could take the name a pruned one had freed and then be pruned itself as the "oldest", keeping an older backup instead. A new backup now always takes a name after every one already used for that time, and backups made in one second are pruned in the order they were made (-10 after -9).
Import, export and formats
AVIF exports report the metadata they can't hold: the AVIF writer embeds Exif only, so each AVIF file whose policy includes XMP-only metadata (title, keywords, place names, contact, usage terms, rating, label, some camera details) now carries a warning naming them in the export's result.
Rendered exports write only a stated capture time: the import's file-date stand-in for a photo with no date is no longer written as Exif DateTimeOriginal and XMP capture time, as the sidecar writer already did not (captured_stated()).
Long custom text in a file name: a file-name template that repeated {custom} with a long Custom Text could build a name of many megabytes and stop the app. {custom} now counts toward the template's length cap like every other token, and uses at most the first 120 characters of the Custom Text.
A .. through a missing folder no longer replaces an original: an exact export path such as <folder>/missing/../IMG_1.jpg, or an export folder <folder>/missing/.. with {name}, passed the originals check (a path that isn't there looked free), then the export created missing and replaced the catalogued original, under Overwrite and Unique alike. The originals check now refuses a .. that can't be resolved yet everywhere it is used, not only in export.checkTarget (#1635).
Names that differ only in case are one file: an export's "never write over a file this export wrote" rule now compares names ignoring case and Unicode normalisation, as APFS, NTFS, exFAT and SMB do, so Overwrite no longer leaves one file for Harbour.jpg and harbour.jpg while reporting both written.
Export parameters accept what the export reads: the check on app.export's parameters kept its own lists of values, which had drifted from what the export reads: videoFormat: mp4 or mov and a destinationMode with spaces around it were refused though the export reads them, and a TIFF preset using PackBits compression was refused when its options were sent back, or read as ZIP. Each parameter is now checked by the same reading the export uses; tiffCompression takes packBits too.
Importing many export presets: importing thousands of export presets that share a name took time growing with the cube of their number (4,000 took half a minute, with the window frozen), and a zip of many preset files had no limit in all. Names in use are now looked up once, and one import adds at most 10,000 export presets, saying which files had more.
Hard Drive publish removes only its own files, to the trash: removing a photo from a Hard Drive published collection deleted the published file and, for good, any {stem}.xmp beside it, whether the collection wrote it or not (a catalogued original's own sidecar in the same folder, for one). The collection now records in publish.json the sidecars it writes, removes only the published file and those, moves them to the system trash (deletes them where there is none: web, Android), and checks the originals guard before every write and removal, so a published name or sidecar never replaces or creates an original's file. A collection published before this keeps its old .xmp files on removal (#1635).
null keeps a preset's export setting:app.export {preset, …} (control channel, MCP, the CLI) treats a key passed as null as not given, so the preset's value stays. Before, null replaced it and validation then applied the default: removeLocation: null exported the location a private preset removes, and metadata: null exported all metadata.
One rule for file names: exports, Rename Photos, import folders and Edit In each cleaned names their own way. They now share one rule: path separators, : * ? " < > | and control characters are replaced, leading and trailing dots and spaces are dropped, and a Windows device name such as CON is changed. So a title like .hidden no longer exports a hidden file, Rename Photos and import folders no longer make a CON that Windows can't open, and Edit In no longer keeps a : or ? from its template.
Original and DNG follow the Metadata choice: an Original's .xmp sidecar and a raw DNG's embedded XMP were the library's full sidecar packet: every keyword (those marked "don't include on export" too), title, caption, creator contact, rating, label and plug-in fields, whatever the Metadata choice; the dialog hid the Metadata section for these formats. They now come from sidecar::export_packet: keywords through the export's keyword list, the copyright fields only under Copyright / Copyright & Contact, nothing but the edits under None. The Metadata section shows for every format.
Cancelling a large Original export: exporting a large file as Original (a long movie) read the whole file before Cancel could take effect, and a file larger than memory allowed stopped the app. The file is now read in pieces, checking for Cancel between them, and a file too large to hold is an error naming it.
Originals follow the file's location: the private-location rule and the Original check decided from the library's GPS, while an Original copy carries the file's own. After the position was cleared (gps_removed) or moved out of a private location, the file's position went out. An Original is now refused when the file's own position is inside a private location, or when the library's was cleared and the file still holds one (GPS only: its place names stay unless Remove Location is on).
One definition of a location for Remove Location Info: what counts as a location was written out three times (the rendered export, the Original's sidecar, the check before an original is copied) and the copies disagreed: the check missed a country code and the IPTC Extension's Location Created / Shown, never read IPTC-IIM place names, and copied a video clip with its QuickTime location. All three now use lcc_meta::Metadata::has_location / clear_location and LOCATION_XMP_PROPERTIES; IIM datasets 2:90, 2:92, 2:95, 2:100 and 2:101 are read; a video clip's original is refused under Remove Location (its container can't be fully checked); a PSD's raw XMP properties are scanned as other files' are, and Exif GPS coordinates count even when a missing hemisphere ref keeps them from reading as a position.
A country code stated only in XMP or IIM now reaches the metadata read from a file (it was dropped when merging the two).
Remove Person Info: new export option removePersonInfo (Export dialog, presets, app.export, MCP) leaves out keywords marked as a person, and the containing keywords and synonyms they would bring. A Lightroom Classic preset's removeFaceMetadata = true maps to it; before, it was dropped without a note and person keywords were exported.
Export with Several Presets keeps every file and every preset's folder: a run is one export as far as its own files go, so its outputs no longer replace each other under Overwrite; the folder asked for when a preset names none goes to those presets only (export.runPresetsfallbackDir), and dir still sets one folder for all.
Add Number and Skip never replace a file: under these conflict choices an export checked whether a name was free, then wrote with a rename that replaced whatever was there by then, so a file another export or a sync app wrote in that moment was lost while the export reported success. The file and its sidecars are now written as new files (an exclusive link or create), and a name taken meanwhile moves the photo to the next number (Add Number) or skips it (Skip). Overwrite is unchanged. On the desktop, the command line and MCP; Render to DNG and Edit In still check first (not changed here).
An unreadable watermark graphic refuses the export: a moved, renamed or foreign watermark graphic is reported before anything is rendered or written, with what to do, instead of being skipped with only a log line while every file went out unwatermarked. Publish services and Export with Several Presets check it too.
Update DNG keeps the library's record of the file: the rewritten file's size and content hash are recorded for the photo and its virtual copies, as Reload does, so Find Missing, duplicate detection and Same Content match the new file.
Update DNG reads its file back: Update DNG Preview & Metadata replaces the DNG only once the new file, synced to disk, reads back exactly as written, as Convert to DNG already did. When it differs (a failing drive or network volume), the original is left as it was and the photo is reported failed.
Update DNG writes a turned DNG's preview as the raw is stored: the preview is turned back by the file's orientation before it is encoded, so readers that apply the orientation (the app's own preview reader included) show it upright instead of turned twice.
Videos in publish and web galleries: publish services upload a clip's movie (read from the export's temporary file, up to 2 GB; a longer one fails with what to do), not the 0-byte bytes a video export leaves; a web gallery renders a clip's poster frame with its edits as its image (export::prepare_still) instead of an empty file under the image's name.
Web gallery keywords follow the keyword options: the {keywords} page token joined the photo's keywords as they are, so keywords marked "don't include on export" went into the HTML web.upload sends to a server. It now lists what an exported file carries (Catalog::export_keywords).
More metadata fields in file names: the file-name templates shared by Export, Rename Photos and import renaming accept the photo's other stored metadata fields as tokens (#1584): {caption}, {headline}, {category}, {keywords}, {copyright}, {job_title}, {location}, {city}, {state}, {country}, {serial}, {alt_text}, {extended_description}, {description_writer}, {shutter}, {aperture} and {focal}, so a marker kept in a rarely used field (a collection number, a SKU) can name the exported files for recipients who don't use a photo library. {keywords} joins with spaces, {aperture} is the bare number so the name keeps no forbidden /, {focal} is 24mm; a field the photo doesn't have stays empty. Gap 36 narrows: Lightroom Classic file-name metadata tokens now have counterparts beyond title / creator / camera / lens / ISO / rating.
Interface
The Export dialog keeps its photos: it records the photos it was opened for and sends them with the export (app.exportids), instead of exporting whatever is selected at the click; its photo count is those photos too.
Performance
TIFF and raw reading memory: the TIFF reader kept a copy of every directory it parsed, children included, for a second pointer to it, and charged none of it to its memory limit, so a value nested d directories deep was held d + 2 times while a file was read. A hostile file of 16 MiB peaked at 1.5 GiB; the same values in the first directory at 273 MiB. A second pointer now parses the directory again (charged to the limits like any other), and nothing is kept aside: both cases peak at 145 MiB.
Updater and security
AppImage updates: which file an AppImage update replaces came from $APPIMAGE alone, which every process an AppImage starts inherits. It is now taken only when this program runs from inside the AppImage runtime's mount ($APPDIR), as the desktop-entry registration already required; the same applies to the "installed by a package manager" test and to deleting the previous AppImage at the next start.
A download cut short is never kept: an HTTPS response whose body runs until the connection closes, and whose connection then ends without a TLS close_notify, is now an error instead of a complete body. This covers everything on the app's own network stack (Immich originals and requests, plug-in files, the offline place list, IPPS printing, the updater), as AI model downloads already were. A body with a length or chunked framing was already checked.
Download caps:Client::download took a stated size as its only cap, so the updater's MAX_DOWNLOAD_BYTES applied only when the (unsigned) feed gave no size. The cap is now the smaller of size and max_size, the updater refuses a stated size above MAX_DOWNLOAD_BYTES before asking for the file, a download refused by its cap keeps no .part, and a write that fails for a full disk or quota deletes the .part. The in-loop cap for bodies without a length is now tested.
Mac update version check: the new bundle's AppFullVersion is now required (a missing or unreadable one was skipped, so a prerelease could pass for the release), and the short version the check expects follows the packaging's own rule; a test renders the real Info.plist.in with the packaging's renderer and checks it.
Mac updates: the install checks the new bundle's LSMinimumSystemVersion against the Mac's macOS and refuses a release the Mac can't run, and keeps the previous bundle (.<name>.app.old) until the new version's next start deletes it, instead of deleting it right after the swap, before the new copy had reached the disk or started once.
Portable (zip) updates on Windows: an undo that couldn't rename a previous file back still recorded the update as undone, so the next clean-up deleted the new program and the record, leaving the copy with no program, only <file>.update-old. Now the new file goes back to its place, the update stays recorded as unfinished (nothing is deleted, and the new version's confirm leaves it alone), and the next start puts the rest back.
Fixes
LibRaw no longer overrides the camera table: a raw read through LibRaw (a camera set to LibRaw, or a file lcc-raw refuses) took LibRaw's colour matrix as the file's own, so a body the app has measured matrices for rendered with LibRaw's instead of the app's. LibRaw's matrix is now used only when neither the file nor the app's camera table has one.
AI model reinstall:ml.models.download and ml.models.install over an installed model deleted its folder (errors ignored) before renaming the verified copy in, so a failed rename left no model and a partly failed delete a broken one. Both now rename the installed folder aside, rename the new one in, then delete the old one, and put it back when the new one can't be moved in.
net gets fetch's fixes: the HTTP client behind Immich, plug-ins, the map, IPPS printing and the updater now bounds the name lookup by the connect timeout and lets Cancel stop it (as model downloads do since #1532), shares one connect deadline across a host's addresses, uses non-blocking sockets instead of socket timeouts (a timed-out send on Windows may already have sent part of its data), resolves a redirect's Location as RFC 3986 says (dot segments, query-only and empty references, other schemes refused), and reads the numbers a server sends (status, Content-Length, chunk sizes, Content-Range, a URL's port) as digits only. fetch reads the status code the same way. A test runs both stacks on the same URLs, redirects and hostile responses.
Relayed plug-in requests stay in their library: requests from program.end hooks, jobs and worker export hooks reach the session's thread through one channel and carried no library: after a library switch, metadata.setStandard, develop.setCrop, photo.virtualCopy, library.add and catalog reads from a call started in library A were answered in library B, on its photos with the same ids. Each RelayHost now records the session's library generation, and HostRequest::answer refuses a request from another one.
Plug-in updates ignore build metadata: an update feed listing the installed version with other build metadata (1.3.0+rebuild over 1.3.0) offered it as an update, which then installed as a repair. The update feed now compares versions as the marketplace and the install check do, by semver precedence.
Update DNG and Adobe's DNGs: Update DNG Preview & Metadata refused a DNG written by Adobe software only when its Software tag said "Adobe"; it now uses the camera database's list of Adobe's names (Lightroom, Camera Raw, DNG Converter, Photoshop), kept in one place (lcc_raw::software) that both read, in every directory of the file.
Update DNG's preview is shown: the embedded-preview reader took the largest JPEG, and Update DNG keeps the camera's previews, so a camera DNG with a large preview kept showing it after the update. A preview this app wrote is now taken first by embedded_preview, and by embedded_preview_covering when its long edge is at least what is asked.
Camera support
Added black-box Lightroom-matched camera calibrations for the Sony ILCE-7M3 and the Canon EOS R5 Mark II (colour model + looks, fitted to contributors' own photos; aggregate statistics only).
Fixed
The macOS, Windows and Linux (AppImage, deb, rpm, tar.gz) downloads now include LibRaw, so the Raw decoder setting can pick it again; it showed greyed out with "LibRaw is not part of this version".
Packaging
No universal macOS disk image: releases ship only the Apple silicon (-macos-arm64.dmg) and Intel (-macos-x64.dmg) images. The universal one was kept through 26.48 so installs of 26.47 and earlier could update; those have all had their way over (#1269). The download page now lists both Mac images when it can't tell which chip a Mac has.