Commit Graph

302 Commits

Author SHA1 Message Date
Alan Grainger 172f247418 Update docs 2026-10-07 18:04:57 +13:00
Alan Grainger 19691ccf99 4.0.0-alpha.2 2026-10-07 15:52:18 +13:00
Alan Grainger 1db8e14ee0 Check for upload service before by status 204 2026-10-07 15:50:54 +13:00
Alan Grainger 3bade3c34b Check for upload service before by status 204 2026-10-07 15:50:34 +13:00
Alan Grainger ce5fc72d5c 4.0.0-alpha.1 2026-10-07 14:09:08 +13:00
Alan Grainger e9694fa4ee Add tini #66 2026-10-07 09:56:31 +13:00
Alan Grainger 9cd5e4ed18 Fix zombie wget processes #66 2026-10-07 09:47:06 +13:00
Alan Grainger 7a20c72f77 WIP 2026-10-06 14:57:10 +13:00
Alan Grainger 242d716f7b Add upload page and move styles to shared assets 2026-10-06 11:14:36 +13:00
Alan Grainger 95ac498cf0 Initial work on upload app server 2026-10-06 10:07:20 +13:00
Alan Grainger 9e6c00da35 Move static assets to shared location 2026-10-06 09:28:53 +13:00
Alan Grainger 255260ccb3 Require Immich 3.x; code cleanup 2026-10-06 09:23:57 +13:00
Alan Grainger d03a77f691 Extract @ipp/core npm workspace package 2026-10-05 15:55:18 +13:00
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
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 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 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 18284ef5c5 3.3.0 2026-09-04 11:56:02 +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
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 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 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 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
Alan Grainger f8c83bc1f4 #273 refinements: match Immich date display, fix timeline UTC parsing, rename timezone flag 2026-07-27 12:14:19 +12:00