Bug 505181

Summary: The sixel backend does not respect HiDPI properly
Product: [Applications] konsole Reporter: fililip <team>
Component: generalAssignee: Konsole Bugs <konsole-bugs-null>
Status: REPORTED ---    
Severity: normal CC: team
Priority: NOR    
Version First Reported In: 25.04.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: test image
comparison: wezterm (on the left), konsole (on the right)

Description fililip 2025-06-03 20:04:27 UTC
Created attachment 182009 [details]
test image

SUMMARY
The sixel backend does not respect HiDPI properly. I have attached a test image and a comparison between wezterm, which seems to handle this correctly.

STEPS TO REPRODUCE
1. Set display scale to 200%
2. Open Konsole
3. Execute a command that outputs a sixel image, such as
img2sixel test.png -w 320 -h 320

OBSERVED RESULT
The image is visibly pixelated and incorrectly upscaled

EXPECTED RESULT
The image is not visibly pixelated and correctly upscaled

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.90
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.3-arch1-1-soft (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 64 GiB of RAM (62.7 GiB usable)
Graphics Processor 1: AMD Radeon RX 6600 XT
Comment 1 fililip 2025-06-03 20:06:24 UTC
Created attachment 182010 [details]
comparison: wezterm (on the left), konsole (on the right)