[cairo issue?] jpg images ≥ 2^15px wide get cropped and distorted
Steps to reproduce :
- Open a jpg image which has both dimensions strictly below 2^15 px (= 32768, so it can be any value between 1 and 32767)
- --> works fine
- Now open a jpg with either the width or the height ≥ 32768 px (no need for both dimensions to be big, it can even be 32768 x 1 px or 1 x 32768 px)
- The displayed image gets cropped and stretched horizontally.
I suspect this to be a Cairo issue because cairo has this 2^15 limit hard wired. You can follow my discussion on the cairo mailing list on that subject but to summarize there is little chance of that limitation being lifted (though I still haven't experimented with the custom cairo build provided at the end).
Specs :
- OSes (tried on 2 for confirmation) :
- MX Linux 21
- Debian Bullseye
- gThumb version : 3.11.3
- cairo version : 1.16.0-5
Graphics info (MX Linux):
AMD Vega 20 [Radeon VII] driver: amdgpu v: kernel bus-ID: 0c:00.0
Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver:
loaded: amdgpu,ati unloaded: fbdev,modesetting,radeon,vesa display-ID: :0.0
screens: 1
Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.0x22.5")
s-diag: 1165mm (45.9")
Monitor-1: DisplayPort-0 res: 3840x2160 hz: 60 dpi: 140 size: 697x392mm (27.4x15.4")
diag: 800mm (31.5")
OpenGL: renderer: AMD Radeon VII (VEGA20 DRM 3.40.0 5.10.0-5mx-amd64 LLVM 12.0.1)
v: 4.6 Mesa 21.2.5 direct render: Yes
Edited by Chameleon Scales