Commit Graph

316 Commits

Author SHA1 Message Date
Alan Grainger 6ae80569ff Add nostore to upload healthcheck and fix double-sort 2026-10-20 09:39:37 +13:00
Alan Grainger fc7670157b Fix issue where custom separator could be the same as a character in the prefix 2026-10-20 09:28:04 +13:00
Alan Grainger 0e6bfc9c15 4.1.0 2026-10-19 17:55:05 +13:00
Alan Grainger a620d0b3ae #302 add name field for uploads 2026-10-19 15:43:29 +13:00
Alan Grainger b1e053426f Merge remote-tracking branch 'origin/upload-ok' 2026-10-19 14:43:13 +13:00
Alan Grainger a958559247 #307 Add ipp.shareCacheTime and cachebusted link after an upload 2026-10-19 14:42:43 +13:00
Alan Grainger 396bf7bede Separate upload-ok 2026-10-17 16:10:48 +13:00
Alan Grainger bbff86957a Update docs 2026-10-08 22:33:54 +13:00
Alan Grainger 5cddddd9f7 Change default download filenames to anonymised hash 2026-10-08 10:31:35 +13:00
Alan Grainger 6aa675e3ef Update docs 2026-10-08 08:44:47 +13:00
Alan Grainger efa7faa8aa 4.0.0 2026-10-08 08:14:18 +13:00
Alan Grainger e7e18f73ba 4.0.0-alpha.3 2026-10-07 20:37:09 +13:00
Alan Grainger 69d600af08 Harden the containers 2026-10-07 20:33:45 +13:00
Alan Grainger 285d48e9d0 Remove locked assets from shares 2026-10-07 18:08:12 +13:00
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