-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Preview Image When Sharing Album Links #16525
Comments
This happens because the opengraph tag generation at https://github.com/immich-app/immich/blob/main/server/src/services/shared-link.service.ts#L194 doesn't take into account the request HOST, but only uses the externalDomain from the Immich config, meaning if that config is empty the opengraph image link points at |
Should be a straightforward fix by passing |
@bo0tzz Would the following process be a valid way to test locally with two machines in same network? Machine A: Host immich (Assuming IP: 192.168.1.80) At first get the thumbnail URL by visiting the shared album link (with machine B, localhost:3000 is replaced with 192.168.1.80:3000): inspect the page to find a If above is the correct process, I have found the that on machine B, the tag contains, |
Authentication happens at the top of the function I linked, based on the shared link key. |
The meta tag containing As a hack, I created a new route to handle album covers |
Maybe creating a sharable (similar to link for album) link for the asset (when the album is shared) might be a good solution? |
I can take care of this opengraph tag generation issue, can you assign it to me? |
I think @redwanulsourav has already been working on this? I believe there shouldn't be any need for new routes or whatever. The code I linked already handles adding the share key to |
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
The bug
Issue Description
When sharing an album link from Immich via messaging apps, the link doesn't include a preview image of the album cover. This makes the shared links less engaging and recognizable compared to other photo sharing services.
Expected Behavior
When sharing an album link, messaging apps should display a preview image (typically the album cover) alongside the link, similar to how Google Photos links appear.
Actual Behavior
Immich shared links appear as plain text URLs without any preview image.
Platform
Additional Context
I've attached a comparison screenshot showing how Google Photos links (top) include preview images while Immich links (bottom) do not.

The OS that Immich Server is running on
Debian
Version of Immich Server
v1.128.0
Version of Immich Mobile App
v1.128.0 build.186
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: