Commit Graph

138 Commits

Author SHA1 Message Date
Alan Grainger d057e23a32 Move icons to separate file 2026-06-04 11:15:41 +12:00
Alan Grainger 4404e646ab Fix corrupted camera-iris icon 2026-06-04 11:05:54 +12:00
Alan Grainger 86ecf08a1a Add jsdocs 2026-06-04 10:25:00 +12:00
Alan Grainger 6d77075e21 Add config option to control the map provider link 2026-06-04 10:03:08 +12:00
Alan Grainger 70153c3137 Add noreferrer to OSM link 2026-06-04 09:53:07 +12:00
Alan Grainger e43b57d644 Refactor to TypeScript ES modules and add metadata sidebar 2026-06-04 07:40:52 +12:00
Alan Grainger 26aa83599e Fix issue with non-ASCII filename in single-asset download 2026-06-01 08:25:53 +08:00
Alan Grainger c2ef0ae938 Fix #184 - return full video to clients that don't send Range header 2026-06-01 08:12:03 +08:00
Alan Grainger d500418500 Fix #214 - replace deprecated query password with POST 2026-05-30 11:32:45 +08:00
Alan Grainger c07ef0fab3 Ensure ipp.lightbox.options is an object 2026-05-30 10:55:50 +08:00
Alan Grainger 7cdc7c21f6 Merge pull request #229 from e1jo/lightbox-custom
new PhotoSwipe lightbox: pass native options
2026-05-30 10:50:54 +08:00
Alan Grainger 356486bb75 Use album cover for og:image
Co-authored-by: Pierre KELBERT <root@mout.ch>
2026-05-30 10:36:09 +08:00
Alan Grainger 1906f3ceeb Fix og:image video image 2026-05-29 17:29:16 +08:00
Alan Grainger 8be7ac9179 Improvements to extension handling 2026-05-28 17:19:28 +08:00
Alan Grainger 95957b7d37 Fix #230 slug album not downloading correctly 2026-05-28 09:35:03 +08:00
Alan Grainger 062c7bef19 Update archiver code to match Immich's code 2026-05-28 08:59:25 +08:00
Alan Grainger 98b52b673c Update archive code to match Immich's code 2026-05-28 08:11:19 +08:00
Alan Grainger 79346d9bc7 Fix #234 remove non-functional publicBaseUrl variable
This should presumably not impact anyone. As mentioned in #234, Node lowercases incoming header keys, so the camelCase lookup `req.headers.publicBaseUrl` never matched any request. The header override has been dead code since it was added — operators relying on it would have silently been falling back to the Host header.

If we add it back in, will need to do it in a way that solves for cache-poisoning.
2026-05-28 07:30:29 +08:00
MDornacher 6a2274df8e fix: use SameSite=Lax for session cookie 2026-05-27 19:36:39 +02:00
Alan Grainger 236620f1f0 #231 fix missing file extension when original file has no extension 2026-05-27 22:34:30 +08:00
John B 9a6740ab96 PhotoSwipe lightbox options: customization 2026-05-26 22:53:35 +03:00
Alan Grainger cbcc607c4b Add timeout for image fetch 2026-05-26 11:48:45 +08:00
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 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 633f589832 2.0.0 - full gallery redesign to match Immich 2026-05-24 13:01:09 +08:00
Alan Grainger a1000840f3 Selective merge from PR #205 2026-04-24 10:39:44 +12:00
Tqqk 440e07aa38 fix: distinguish invalid share keys from password-protected shares in 401 handling 2026-04-04 21:09:10 +02: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 8eb99a265a #196 Fix incorrect original download in zip 2026-03-03 10:24:18 +13: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
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 ecf98bf7f8 #176 fix slug links with password protection 2026-01-26 21:01:58 +13:00
Alan Grainger 13e4fe231e Use Immich ID as the slide index 2026-01-26 16:44:26 +13: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