You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect aspect ratio for extremely long images when the original is loaded on mobile app #11987
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 waitfor it to load the original.
5. After it loads the original image, the image's aspect ratio will be wrong.
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
@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
@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)
@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.
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
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.
Activity
ChiNoel-osu commentedon Aug 23, 2024
Also I can't really move the image when zoomed in on a long image, but that's for another issue I think.
[-]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[/+]ChiNoel-osu commentedon Oct 21, 2024
Example image:
See: example image
It's tooooo long.
The squares in image will become rectangles in immich.
ChiNoel-osu commentedon Oct 27, 2024
Immich APP:


Immich Web:
ChiNoel-osu commentedon Dec 15, 2025
Updating issue description. This issue still exists in the latest version.
LeLunZ commentedon Apr 19, 2026
@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
ChiNoel-osu commentedon Apr 20, 2026
@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)
LeLunZ commentedon Apr 20, 2026
Interesting I am also on the 13 mini with iOS 26.4.1
ChiNoel-osu commentedon Apr 20, 2026
@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
LeLunZ commentedon Apr 20, 2026
Do you have "load original image" on in your immich settings on your phone?
ChiNoel-osu commentedon Apr 20, 2026
I do
LeLunZ commentedon May 19, 2026
Could you download the generated previews for both pictures and upload them here?
ChiNoel-osu commentedon May 22, 2026
@LeLunZ Not sure where to find the generated previews, but I do see some errors regarding big images:
ChiNoel-osu commentedon May 31, 2026
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.
[Impeller] Keep the aspect ratio when shrinking images to the max tex…
[Impeller] Keep the aspect ratio when shrinking images to the max tex…