Commit Graph

162 Commits

Author SHA1 Message Date
Alan Grainger 29ca716ad8 Lower default concurrency 2026-05-26 11:29:57 +08:00
Alan Grainger 4bf088d486 Merge pull request #218 from ahyattdev/limit-concurrent-download
Limit concurrent downloads and retry failed downloads
2026-05-26 11:22:27 +08:00
Alan Grainger 6760c6e49b Add LRU eviction 2026-05-26 11:13:26 +08:00
Andrew Hyatt 83cc0f4bb6 Cache share and album metadata for 2 minutes.
Fixes 5 second loading time for every image that I experienced with an album of 2,500 photos.
2026-05-25 22:20:30 -04:00
Andrew Hyatt 0f88414730 Limit concurrent downloads and retry failed downloads
These optimizations both help large albums where many simultaneous downloads will overwhelm Immich. Also with larger downloads, a transient network error is more likely to happen to at least one asset, so three total attempts will be made per asset.

If download fails after retries, the entire download will be aborted. This is to avoid silent failures where users may think their download is complete when assets may actually have been dropped.

The next optimization to make will be building the archive on disk instead of loading every image into memory (will fail for very large albums).
2026-05-25 16:44:18 -04:00
Alan Grainger 7a04fd6d3e #162 revert previous - fullsize Immich API appears to not yet be functional 2026-05-25 20:40:09 +08:00
Alan Grainger 04aa1d9dc9 #162 add support for fetching fullsize image 2026-05-25 20:14:59 +08:00
Alan Grainger d11091e844 2.0.1 2026-05-25 16:28:13 +08:00
Alan Grainger cd12f792a7 Fix #221 - single selection should not be a zip 2026-05-25 16:23:24 +08:00
Alan Grainger 349cf0061b #223 Fix lightbox buttons 2026-05-25 16:19:22 +08:00
Alan Grainger 7c4c1c4776 #224 Fix missing caption 2026-05-25 16:06:16 +08:00
Alan Grainger 5c169af78d Update config default to match Immich 2026-05-24 13:28:58 +08:00
Alan Grainger cbbe821177 Update config default to match Immich 2026-05-24 13:02:23 +08:00
Alan Grainger 633f589832 2.0.0 - full gallery redesign to match Immich 2026-05-24 13:01:09 +08:00
Alan Grainger 2b903f031e npm audit 2026-04-24 10:46:38 +12:00
Alan Grainger a1000840f3 Selective merge from PR #205 2026-04-24 10:39:44 +12:00
Alan Grainger e0411d1133 Merge pull request #192 from esammier/feat-opengraph-description
Show description in OpenGraph link previews
2026-04-24 10:32:36 +12:00
Tqqk 440e07aa38 fix: distinguish invalid share keys from password-protected shares in 401 handling 2026-04-04 21:09:10 +02:00
Alan Grainger 6952c4811a Update package.json 2026-03-22 15:30:50 +13:00
Fraggar 90b8a01b8a fix: handle password-protected shares with Immich v2.6+
Immich v2.6 changed the API response for password-protected shared links
from "Invalid password" to "Password required" when no password token is
provided. The previous string match on the message caused the proxy to
fall through to the catch-all and return 404 instead of showing the
password entry page.

Match on the 401 status code alone, since this endpoint only returns 401
for password-related reasons. This is backwards compatible with older
Immich versions and resilient to future message wording changes.

Fixes #198

Made-with: Cursor
2026-03-21 22:26:41 +01:00
Alan Grainger ac00570082 #196 Fix incorrect original download in zip 2026-03-03 10:25:02 +13:00
Alan Grainger 8eb99a265a #196 Fix incorrect original download in zip 2026-03-03 10:24:18 +13:00
tkf dee0c3b5cd Merge branch 'main' into feat-opengraph-description 2026-02-24 21:41:38 +00:00
Alan Grainger ec283b4bd9 Add placeholder thumbnail on image error 2026-02-23 16:56:36 +13:00
Alan Grainger ad7c0000ef Improve gallery rendering, make archive creation parallel 2026-02-23 16:46:53 +13:00
sir_omelett 75b2edb6ec Also reorganize title meta tags 2026-02-21 18:59:10 +00:00
sir_omelett 8a211a1059 Add HTML meta tags for description 2026-02-21 18:54:45 +00:00
Alan Grainger e72bce70f8 Fix #187 description not wrapping correctly 2026-02-17 11:53:04 +13:00
Alan Grainger 8d93051f90 npm audit 2026-02-17 11:01:40 +13:00
Alan Grainger 56c44b5dfa Fix version 2026-02-17 07:07:11 +13:00
Alan Grainger 31b8bbc58b 1.15.3 2026-02-17 07:05:58 +13:00
Alan Grainger 08b9cd1056 #151 #96 Add album descriptions 2026-02-16 21:48:14 +13:00
Alan Grainger fe0aee8df9 Fix #148 download preview video 2026-02-13 11:49:00 +13:00
Alan Grainger ea4f16a436 Move helper function 2026-02-09 11:30:56 +13:00
Sijisu eaaeacb4c6 Properly escape text coming from the Immich instance 2026-02-08 22:59:58 +01:00
Alan Grainger cfd42fb575 #176 fix slug links with password protection 2026-01-26 22:44:06 +13:00
Alan Grainger b677269509 #176 fix slug links with password protection 2026-01-26 21:07:27 +13:00
Alan Grainger ecf98bf7f8 #176 fix slug links with password protection 2026-01-26 21:01:58 +13:00
Alan Grainger 8a5df29bcd #181 Add lgHash plugin to allow direct link to images 2026-01-26 16:45:08 +13:00
Alan Grainger 13e4fe231e Use Immich ID as the slide index 2026-01-26 16:44:26 +13:00
ksfeldman 96a60bbaf5 Add lgHash to lightgallery's plugins, upgrade lg
This enables the hash plugin. This gives each photo a unique URL to make
it easier to share.

Also, upgrading lg to 2.9.0
2026-01-23 20:02:20 -05:00
Alan Grainger bb61cf6000 #176 revert PR #174 2026-01-23 10:09:30 +13:00
Alan Grainger 765afd9e26 #174 Fix: validate share link before serving direct asset URLs 2026-01-12 21:08:47 +13:00
Andy Bodnar 92ea148099 fix: validate share link before serving direct asset URLs
Direct asset URLs (/share/photo/:key/:id and /share/video/:key/:id)
were bypassing password protection. This fix:
- Validates the share link via getShareByKey() before serving
- Redirects to share page if password is required but not provided
- Verifies the requested asset belongs to the share link

Fixes #173
2026-01-10 13:39:33 -07:00
Alan Grainger 34e4145ea3 #155 Add Twitter-specific OG tags 2025-11-08 22:28:28 +08:00
Zaida-3dO a59d798d6d remove whitespace 2025-11-03 19:10:16 +00:00
Zaida-3dO 28455b6276 Prettier 2025-11-03 19:08:47 +00:00
Zaida-3dO 675a6730e1 Load assets in parallel
When loading the assets in the album, we do so sequentially which is not ideal, particularly on larger albums. This PR loads all assets in parallel instead.
2025-11-03 19:01:40 +00:00
Alan Grainger 148facef6c #152 Fix issue with missing file extension in zip download 2025-10-29 13:55:50 +08:00
Alan Grainger 6bd4723926 #149 Fix issue where the original filename was not always present for downloaded file 2025-10-28 17:24:27 +08:00