The Immich Photos release
With this release, Dawarich can now show photos from your Immich instance on the map.
To enable this feature, you need to provide your Immich instance URL and API key in the Settings page. Then you need to enable "Photos" layer on the map (top right corner).
An important note to add here is that photos are heavy and hence generate a lot of traffic. The response from Immich for specific dates is being cached in Redis for 1 day, and that may lead to Redis taking a lot more space than previously. But since the cache is being expired after 24 hours, you'll get your space back pretty soon.
The other thing worth mentioning is how Dawarich gets data from Immich. It goes like this:
- When you click on the "Photos" layer, Dawarich will make a request to
GET /api/v1/photos
endpoint to get photos for the selected timeframe. - This endpoint will make a request to
POST /search/metadata
endpoint of your Immich instance to get photos for the selected timeframe. - The response from Immich is being cached in Redis for 1 day.
- Dawarich's frontend will make a request to
GET /api/v1/photos/:id/thumbnail.jpg
endpoint to get photo thumbnail from Immich. The number of requests to this endpoint will depend on how many photos you have in the selected timeframe. - For each photo, Dawarich's frontend will make a request to
GET /api/v1/photos/:id/thumbnail.jpg
endpoint to get photo thumbnail from Immich. This thumbnail request is also cached in Redis for 1 day.
The.Immich.Photos.2024-11-26.at.20.45.44.mov
Added
- If you have provided your Immich instance URL and API key, the map will now show photos from your Immich instance when Photos layer is enabled.
GET /api/v1/photos
endpoint added to get photos from Immich.GET /api/v1/photos/:id/thumbnail.jpg
endpoint added to get photo thumbnail from Immich.- Alternative dockerfile is available in case you want to run the app differently. Refer to #379
💙 This release is supported by James Manolios, chenrik and aldumil on Patreon 💙
What's Changed
- Bump puma from 6.4.3 to 6.5.0 by @dependabot in #441
- Bump rswag-ui from 2.15.0 to 2.16.0 by @dependabot in #439
- Bump sidekiq from 7.3.5 to 7.3.6 by @dependabot in #438
- Create new docker compose with some improvement by @sibuser in #379
- Add immich photos to the map by @Freika in #445
New Contributors
Full Changelog: 0.16.9...0.17.0