Skip to content

Incorrect aspect ratio for extremely long images when the original is loaded on mobile app #11987

Closed

Description

@ChiNoel-osu

The bug

If I want to view an extremely long image (for example 50000x1000 in resolution) from the Immich mobile app, the image appears to be "squeezed" after loading the original so a circle now looks like an ellipse. It's like it's trying to confine the image within a specific aspect ratio.
This issue exists for both vertically long images and horizontally long images (Panoramas).

Last reproduced on iPhone 13 mini, iOS 26.4.1

The OS that Immich Server is running on

Ubuntu 24.04.3 LTS

Version of Immich Server

v2.7.5

Version of Immich Mobile App

2.7.5 build.256

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

I don't think this is relevant.

Your .env content

I don't think this is relevant.

Reproduction steps

1. Have a extremely long image on Immich server.
2. Open the Immich mobile app and connect to the server.
3. From Setting->Asset Viewer, enable "Load original image".
4. Go to the main page and tap on the extremely long image and wait for it to load the original.
5. After it loads the original image, the image's aspect ratio will be wrong.

Relevant log output

No response

Additional information

No response

Activity

  1. ChiNoel-osu commented on Aug 23, 2024

    @ChiNoel-osu
    Author

    Also I can't really move the image when zoomed in on a long image, but that's for another issue I think.

  2. changed the title [-]Extremely long images appears "squashed" when the original is loaded on mobile app[/-] [+]Incorrect aspect ratio for extremely long images when the original is loaded on mobile app[/+] on Oct 21, 2024
  3. ChiNoel-osu commented on Oct 21, 2024

    @ChiNoel-osu
    Author

    Example image:
    See: example image
    It's tooooo long.

    The squares in image will become rectangles in immich.

  4. ChiNoel-osu commented on Oct 27, 2024

    @ChiNoel-osu
    Author

    Immich APP:
    IMG_7018
    Immich Web:
    Screenshot 2024-10-27 222735

  5. added theissue type on Nov 25, 2025
  6. moved this from To triage to Ready in Issue Trackeron Nov 25, 2025
  7. ChiNoel-osu commented on Dec 15, 2025

    @ChiNoel-osu
    Author

    Updating issue description. This issue still exists in the latest version.

  8. LeLunZ commented on Apr 19, 2026

    @LeLunZ
    Collaborator

    @ChiNoel-osu for me the image is fully visible on the latest version just like on your web screenshot. The only issue is that I can't generate a thumbnail for your photo

  9. ChiNoel-osu commented on Apr 20, 2026

    @ChiNoel-osu
    Author

    @LeLunZ Hmm, I just tested on latest version of the app (2.7.5 build.256), the image is still squished.
    I'm on iOS 26.4.1, iPhone 13 mini (updating description)

  10. LeLunZ commented on Apr 20, 2026

    @LeLunZ
    Collaborator

    Interesting I am also on the 13 mini with iOS 26.4.1

  11. ChiNoel-osu commented on Apr 20, 2026

    @ChiNoel-osu
    Author

    @LeLunZ That is so weird. I downloaded my example image before and now it's appearing normally. However, I suspect this is because Immich is not loading the original at all (which is another problem on its own). The edge of the squares are not sharp as it should be.
    To be more prominent, I created another example below.
    If I upload this image to my phone and open Immich to sync it, Immich is loading the original, and and image appears squished after original has loaded.
    If I upload this image to immich from my PC and open this image in Immich Mobile, the original is not loading (can confirm by monitoring network usage), and the image is blurry.

    loooong image below

    Image
  12. LeLunZ commented on Apr 20, 2026

    @LeLunZ
    Collaborator

    Do you have "load original image" on in your immich settings on your phone?

  13. ChiNoel-osu commented on Apr 20, 2026

    @ChiNoel-osu
    Author

    Do you have "load original image" on in your immich settings on your phone?

    I do

  14. LeLunZ commented on May 19, 2026

    @LeLunZ
    Collaborator

    Could you download the generated previews for both pictures and upload them here?

  15. ChiNoel-osu commented on May 22, 2026

    @ChiNoel-osu
    Author

    Could you download the generated previews for both pictures and upload them here?

    @LeLunZ Not sure where to find the generated previews, but I do see some errors regarding big images:

    [Nest] 7  - 05/22/2026, 12:00:00 AM     LOG [Microservices:LibraryService] Initiating scan of all external libraries...
    [Nest] 7  - 05/22/2026, 12:00:00 AM     LOG [Microservices:LibraryService] Checking for any libraries pending deletion...
    [Nest] 7  - 05/22/2026, 2:00:00 AM     LOG [Microservices:DatabaseBackupService] Database Backup Starting. Database Version: 14
    /usr/lib/postgresql/14/bin/pg_dump exited (0)
    gzip exited (0)
    [Nest] 7  - 05/22/2026, 2:00:17 AM     LOG [Microservices:DatabaseBackupService] Database Backup Success
    [Nest] 7  - 05/22/2026, 3:00:00 AM     LOG [Microservices:SessionService] Deleted 0 expired session tokens
    [Nest] 7  - 05/22/2026, 3:00:00 AM     LOG [Microservices:MemoryService] Creating memories for 2026-05-25T00:00:00.000Z
    [Nest] 7  - 05/22/2026, 3:00:03 AM   ERROR [Microservices:{"id":"c70479f3-b7d0-42a3-a9d1-3d2fe5709dd9"}] Unable to run job handler (AssetGenerateThumbnails): Error: Processed image is too large for the WebP format
    Error: Processed image is too large for the WebP format
        at Sharp.toFile (/usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/sharp/lib/output.js:90:19)
        at MediaRepository.generateThumbnail (/usr/src/app/server/dist/repositories/media.repository.js:149:23)
        at async Promise.all (index 1)
        at async MediaService.generateImageThumbnails (/usr/src/app/server/dist/services/media.service.js:276:25)
        at async MediaService.handleGenerateThumbnails (/usr/src/app/server/dist/services/media.service.js:153:25)
        at async JobService.onJobRun (/usr/src/app/server/dist/services/job.service.js:51:30)
        at async EventRepository.onEvent (/usr/src/app/server/dist/repositories/event.repository.js:91:13)
        at async /usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/cjs/classes/worker.js:570:32
    [Nest] 7  - 05/22/2026, 3:00:09 AM   ERROR [Microservices:{"id":"92043dcc-f26c-42c0-a731-2b4a9cf1041d"}] Unable to run job handler (AssetGenerateThumbnails): Error: Processed image is too large for the JPEG format
    Error: Processed image is too large for the JPEG format
        at Sharp.toFile (/usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/sharp/lib/output.js:90:19)
        at MediaRepository.generateThumbnail (/usr/src/app/server/dist/repositories/media.repository.js:149:23)
        at async Promise.all (index 2)
        at async MediaService.generateImageThumbnails (/usr/src/app/server/dist/services/media.service.js:276:25)
        at async MediaService.handleGenerateThumbnails (/usr/src/app/server/dist/services/media.service.js:153:25)
        at async JobService.onJobRun (/usr/src/app/server/dist/services/job.service.js:51:30)
        at async EventRepository.onEvent (/usr/src/app/server/dist/repositories/event.repository.js:91:13)
        at async /usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/cjs/classes/worker.js:570:32
    
  16. ChiNoel-osu commented on May 31, 2026

    @ChiNoel-osu
    Author

    Another one of my findings:
    Enabling "Prefer remote images" in the app setting will prevent loading the original long images from local, therefore they're not "squished". However the remote original images are never loaded, they'll be blurry.

  17. self-assigned this
    on Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions