immich
immich copied to clipboard
[BUG] Images in landscape orientation have poor resolution in web view
Describe the bug Generated images in landscape orientation have poor resolution compared to images in portrait orientation
To Reproduce Steps to reproduce the behavior:
- Upload image once in landscape and once in portrait resolution (original resolution in my case 4205x2803, resp. 2803x4205)
- Click on image to see large view
- The landscape version looks pixelated and only has a resolution of 1440x960
- The portrait version looks sharper and has a resolution of 1440x2160
Expected behavior Images should have decent resolution for screen regardless of their orientation
Screenshots
Image on the left looks worse and pixelated even though the uploaded image had the same resolution

System
- Browser: Firefox
- Server Version:
v1.43.1
Additional Information I only chose the same image for demonstration purposes. Resolution is worse for all landscape images compared to portrait images. This also isn't just an effect of the landscape image taking up more screen real estate as seen by the different resolution of the generated "preview" image
The landscape version resolution is 1440x960 while the portrait version is 1440x2160. The total pixel is more, so that is probably why
Yes, that's the bug I'm reporting. The original images have the same number of pixels but the preview that Immich generates produces different resolutions.
This is also noticeable on the demo page, where all landscape images seem to have a low resolution, but when downloaded look totally fine. Of course the effect is less severe for screen resolutions of 1080p or less, but at 1440p it's very apparent.
Maybe this was done intentional for mobile screens where portrait images would take up more screen and therefore would benefit from a higher resolution, but on desktop it's the other way around and therefore the landscape version should have at least the same resolution