[BUG] Thumbnail file path is constructed incorrectly #344

Closed
opened 2026-02-04 19:53:31 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @bo0tzz on GitHub (Oct 4, 2022).

Originally assigned to: @deepesh16b on GitHub.

At https://github.com/immich-app/immich/blob/main/server/apps/microservices/src/processors/thumbnail.processor.ts#L65, the path for a thumbnail file is constructed as follows:
const jpegThumbnailPath = resizePath + originalFilename + '.jpeg';
This has two issues: there is no / between the folder path and the filename, and it is joining paths using string concatenation. Instead, this path should be constructed using the join function like is done a few lines above: https://github.com/immich-app/immich/blob/main/server/apps/microservices/src/processors/thumbnail.processor.ts#L57.

Originally created by @bo0tzz on GitHub (Oct 4, 2022). Originally assigned to: @deepesh16b on GitHub. At https://github.com/immich-app/immich/blob/main/server/apps/microservices/src/processors/thumbnail.processor.ts#L65, the path for a thumbnail file is constructed as follows: `const jpegThumbnailPath = resizePath + originalFilename + '.jpeg';` This has two issues: there is no `/` between the folder path and the filename, and it is joining paths using string concatenation. Instead, this path should be constructed using the `join` function like is done a few lines above: https://github.com/immich-app/immich/blob/main/server/apps/microservices/src/processors/thumbnail.processor.ts#L57.
OVERLORD added the good first issue label 2026-02-04 19:53:31 +03:00
Author
Owner

@deepesh16b commented on GitHub (Oct 4, 2022):

Please assign this to me
@bo0tzz

@deepesh16b commented on GitHub (Oct 4, 2022): Please assign this to me @bo0tzz
Author
Owner

@EdkoPitonak commented on GitHub (Oct 4, 2022):

Hi i would love to work on this if it is possible

@EdkoPitonak commented on GitHub (Oct 4, 2022): Hi i would love to work on this if it is possible
Author
Owner

@zackpollard commented on GitHub (Oct 4, 2022):

Please assign this to me @bo0tzz

You have been assigned, thanks for the interest in working on this! 😄

@zackpollard commented on GitHub (Oct 4, 2022): > Please assign this to me @bo0tzz You have been assigned, thanks for the interest in working on this! 😄
Author
Owner

@alextran1502 commented on GitHub (Oct 4, 2022):

Resolved in #780

@alextran1502 commented on GitHub (Oct 4, 2022): Resolved in #780
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#344