Bug 492226

Summary: Rectangle Region Screenshots Cannot Display Resolution In Some (Primarily KDE) Applications
Product: [Applications] Spectacle Reporter: Eamonn Rea <eamonnrea>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: REPORTED ---    
Severity: normal CC: kde
Priority: NOR    
Version: 24.08.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example screenshot without resolution information

Description Eamonn Rea 2024-08-26 17:24:13 UTC
Created attachment 172979 [details]
Example screenshot without resolution information

SUMMARY
When a Rectangle Region screenshot is saved with Spectacle 24.08, it does not display the resolution in the Dolphin info bar, in Koko, or in Gwenview. When opened in Firefox, or inspected with the `file` command, it will display the resolution.

Region screenshots taken before I updated Spectacle today, I believe taken with version 24.05.2, do display the resolution in Dolphin and Gwenview. 

I have attached a screenshot of the website "https://example.com" which, on my system, does not display the resolution. I am unsure if this will carry over once downloaded, but it should be reproducible.

STEPS TO REPRODUCE
1. Take a Rectangle Region screenshot with Spectacle.
2. It will not display the resolution in the Dolphin info panel, and will also not display the resolution in Gwenview and Koko.

OBSERVED RESULT
Spectacle Rectangle Region Screenshots taken with Spectacle 24.08 do not display the resolution in various KDE applications.

EXPECTED RESULT
Spectacle Rectangle Region Screenshots should display the resolution in all instances, matching the behaviour of previous Spectacle versions.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX

ADDITIONAL INFORMATION
- This affects scaled and unscaled displays.
- Tested on Wayland, did not try X11.
Comment 1 Eamonn Rea 2024-09-03 17:23:13 UTC
Region screenshots taken on my laptop with a single scaled display, running the same Plasma, Gear, and Frameworks versions, are not able to reproduce this behaviour. However screenshots from my PC transferred onto my laptop, including the screenshot attached to this bug report, can reproduce the problem on my laptop.

In other words, region screenshots on my laptop can display the resolution, but region screenshots from my PC that are transferred onto my laptop still do not display the resolution in the same circumstances.
Comment 2 Eamonn Rea 2024-09-13 20:21:47 UTC
I tested again after updating, and this is still present in Spectacle 24.08.1 on my PC. I have not yet tested on my laptop to see if it still works as expected.

To clarify again, the behaviour is as follows:
- On my multi-screen Desktop PC, region screenshots cannot display resolution in certain applications, primarily KDE applications.
- On my single-screen laptop, region screenshots can display resolution.
- Screenshots transferred from my PC to my laptop exhibit the problem on my laptop, so the problem probably lies somewhere with whatever is happening during saving on my PC.