Commit Graph

670 Commits

Author SHA1 Message Date
Alan Grainger 54c0f91c4e 3.4.1 2026-10-05 11:24:02 +13:00
Alan Grainger 65958ae899 Fix long-press issue for iPhone 2026-10-05 11:22:22 +13:00
Alan Grainger 588174f62e Fix password-share caching, slug gate, video probe and mobile tile tap (#119, #294) 2026-10-05 09:39:14 +13:00
Alan Grainger bbc23b6250 Move attachmentDisposition to filename.ts 2026-10-05 09:21:48 +13:00
Alan Grainger f8b7776bc4 Merge pull request #295 from adriandlam/fix/content-disposition-encoding 2026-10-05 09:20:32 +13:00
Alan Grainger 0ae17abdc0 Tidy up WebP download filename fix #297 2026-10-05 09:12:34 +13:00
opencode 2a99258278 Fix download file extensions when Immich serves WebP previews
With maxDownloadQuality=preview and Immich generating WebP previews, the
zip entries and per-asset downloads were named .jpg while carrying WebP
bytes. Previews, converted fullsize images and transcodes follow the
server's image settings, so derive the extension from the upstream
content-type for every non-/original endpoint, via a shared
servedMimeFrom() in gallery/sizing.ts.
2026-10-05 09:12:34 +13:00
Alan Grainger 6a5ff3cd13 Merge pull request #298 from SilasDo/fix/dockerfile-app-ownership
Create /app as node-owned in the Docker image
2026-10-05 09:01:42 +13:00
opencode bc30610e71 Create /app as node-owned in the Docker image
WORKDIR leaves it root-owned on non-BuildKit builders and COPY --chown
doesn't cover the pre-existing directory, so npm ci as node fails with
EACCES. CI never sees it because buildx chowns WORKDIR to USER.
2026-10-04 11:04:44 +02:00
Adrian Lam 930d990580 Percent-encode commas in download filenames
encodeURI leaves , ; and other reserved characters raw in the RFC 5987
filename* value. A comma in an album title ("Yellow Aster Butte, WA")
makes Chrome see two Content-Disposition headers and fail the download
with ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION. Single-asset
downloads had the same bug for original filenames with a comma.

Both call sites now share attachmentDisposition(), which uses
encodeURIComponent plus the attr-char exclusions ' ( ) *.
2026-10-03 01:53:48 -04:00
Alan Grainger aa520b47fc Move docs to Github pages 2026-09-22 08:40:34 +12:00
Alan Grainger d395d900a1 3.4.0 2026-09-21 14:54:44 +12:00
Alan Grainger bbb4dd1491 Tidy up overly verbose LLM comments 2026-09-17 22:08:47 +12:00
Alan Grainger 93c86aefab Merge pull request #290 from vposham/sticky-loaded-thumbnails 2026-09-17 22:04:16 +12:00
Alan Grainger 16ba140766 Size motion photo clip to the still and make the toggle sticky #286 2026-09-17 21:45:55 +12:00
Alan Grainger c3dccf4d25 Merge pull request #286 from trecoool/feat/motion-photos 2026-09-17 21:34:22 +12:00
Vignan Posham 9b85b4e748 Guard sticky-tile registration against stale image loads
If a tile is virtualised out before its in-flight thumbnail finishes, the
load event still fires on the detached <img>. Without a guard that callback
would add the index to state.stickyTiles, potentially pinning a later
replacement tile whose own <img> has not painted yet.

Only register the index while this <a> is still the live tile for it
(state.renderedTiles.get(index) === a).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 01:38:19 -04:00
Vignan Posham ec199961ea 3.3.2
Bumps the release version so the cache-busted static asset path
(/share/static/<version>/js/client/init.js) changes and clients pick up the
rebuilt gallery bundle with the sticky-thumbnail fix instead of an
immutably-cached old one.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 01:29:12 -04:00
Vignan Posham 06741b47bb Keep loaded gallery thumbnails mounted to stop scroll-back flicker
The gallery virtualiser removed a tile's <a>/<img> from the DOM whenever it
left the viewport ± 1 buffer and rebuilt it from scratch on re-entry, so
scrolling back up replayed the thumbhash placeholder and opacity fade on
thumbnails that were already loaded - even for small albums where no network
fetch happens.

Track tile indices whose <img> has fired `load` in a bounded, LRU-ordered
`stickyTiles` set. virtualize() keeps those tiles in the "needed" set so
syncRendered never unmounts them; not-yet-loaded tiles still get the normal
lazy create/remove + data-src treatment, so large albums keep lazy-loading
on first scroll-into-view.

The set is trimmed to STICKY_TILE_LIMIT (1500) each pass - currently visible
tiles are bumped to most-recently-used and the oldest off-screen overflow is
released back to normal virtualisation - so a very large album (100k+ photos)
cannot accumulate unbounded mounted DOM or retained image memory as the user
scrolls. Cleared on a layout recompute since tile geometry changes there.
Also adds a fast-path skip in loadVisibleTiles() for finished loads now that
the rendered-tile map can be larger.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 01:10:23 -04:00
Alan Grainger 5884e5afc9 Remove buffering for single downloads #94 2026-09-05 06:12:54 +12:00
Alan Grainger 5fb59b27e4 Update docs 2026-09-04 23:37:55 +12:00
Alan Grainger f70ae0397e Update docs 2026-09-04 23:35:42 +12:00
Alan Grainger 3753dbe42e 3.3.1 2026-09-04 23:28:03 +12:00
Alan Grainger 3701d4e92c Add no-store cache header for zip downloads 2026-09-04 23:27:28 +12:00
Alan Grainger ff45919107 Update docs 2026-09-04 12:55:08 +12:00
Alan Grainger 18284ef5c5 3.3.0 2026-09-04 11:56:02 +12:00
Alan Grainger f7ba02d4fe Update docs 2026-09-04 11:52:12 +12:00
Alan Grainger 9c72829c4f #289 stream downloads rather than staging to temp disk 2026-09-04 11:20:45 +12:00
Alan Grainger 02b30e0176 Fix #260 empty shares when Postgres timezone is not UTC 2026-09-03 15:49:28 +12:00
Alan Grainger 24e8228d9f Fix #288 IPP reads from NAS at LAN speed and feeds user at a much slower speed, causing its buffer to overflow 2026-09-03 15:40:51 +12:00
Alan Grainger 78ff683e8f Update docs 2026-08-26 09:42:39 +12:00
Alan Grainger a2d03eeb92 Update docs 2026-08-26 09:42:10 +12:00
Alan Grainger afe7811a6f Update docs 2026-08-26 09:31:49 +12:00
trecoool 4021c66cec #200 motion photo (Live Photo) support
Show a badge on the gallery thumbnail and a lightbox toggle that plays the
photo's clip over the still, matching Immich's own viewer.

The clip is a hidden Immich asset, but the existing share key already
authorises it - checkSharedLinkAccess whitelists each shared asset's
livePhotoVideoId - so no new upstream access is involved. The video route
accepts a clip id only when a shared still points at it.

Both enumeration paths already carry the field (AssetResponseDto for
individual shares, TimeBucketAssetResponseDto for album buckets), so album
shares cost no extra upstream requests.

Gated by ipp.motionPhotos (default true). The clip is preload="none" and is
only fetched when a visitor presses the toggle.
2026-08-24 14:35:28 +02:00
Alan Grainger 8c2c2219ce #284 release open fd on aborted download 2026-08-21 05:58:29 +12:00
Alan Grainger 7c8df2f2b5 Merge PR #281 - fix for video download failure 2026-08-20 07:44:59 +12:00
Alan Grainger 2a5580e5a2 #281 refinements: transcoded filename extensions, allowDownload:2 caveats in docs 2026-08-20 07:35:49 +12:00
Alan Grainger a2776f9933 Merge PR #281: fall back to video playback for downloads on download-disabled shares 2026-08-20 07:31:59 +12:00
Alan Grainger ac6b5351c3 Fix #275 video slide centering 2026-08-20 07:19:25 +12:00
Alan Grainger 46f3bce5ce 3.2.1 2026-08-20 07:04:11 +12:00
Alan Grainger 813b8542e4 #282 fix docs 2026-08-20 07:00:20 +12:00
Alan Grainger 658d5e8baa npm audit 2026-08-20 06:48:52 +12:00
Alan Grainger 0cc1c759e9 #284 fix issue where aborted downloads are not cleaned up 2026-08-20 06:42:31 +12:00
mFIND 72ae93ad9d Issue #239 fix 2026-08-14 16:47:13 +02:00
Alan Grainger 7ce8ff28f1 Merge pull request #280 from Thiesjoo/patch-1
Update kubernetes.md to provide updated documentation
2026-08-07 08:06:32 +12:00
Thies ef1b05e88e Update kubernetes.md to provide updated documentation
Instead of using an Umbrella Chart, we can simply hook into the common chart immich already uses, and just extend the server part of it.

The old guide was based on immich chart version 0.9, we are at 0.13.1 now. It also references bjw-s common version 1.4, where immich now uses version 5.0.1
2026-08-06 17:12:50 +02:00
Alan Grainger 28c84fe77b 3.2.0 2026-07-27 12:42:44 +12:00
Alan Grainger e1a968cb99 Fix case 2026-07-27 12:41:36 +12:00
Alan Grainger 55bd63e3f2 #272 Keep undated assets last regardless of album sort order 2026-07-27 12:27:03 +12:00
Alan Grainger 0f972782dc Merge pull request #272 from trecoool/fix/group-by-date-album-order 2026-07-27 12:23:35 +12:00