Bug 512706 - saves images in the wrong format, contrary to claims. maybe regression
Summary: saves images in the wrong format, contrary to claims. maybe regression
Status: RESOLVED WORKSFORME
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.5.3
Platform: EndeavourOS Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-28 03:20 UTC by Shual Kravot
Modified: 2025-12-28 03:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shual Kravot 2025-11-28 03:20:28 UTC
SUMMARY
Spectacle saves files as HEIC despite file extension and settings, via command line or via GUI.

STEPS TO REPRODUCE
Via GUI:
 + take a screenshot -> click "save as" -> in the dialog choose filetype ("PNG Image")
--- or ---
via CLI:
 + $ spectacle -nbfo screenshot.png 

OBSERVED RESULT
 + image can't be open by gwebview,
 + Python's Pillow ImageGrab crashs   (PIL.UnidentifiedImageError: cannot identify image file '/tmp/tmpxe7zk.png')
 + executing "file" reveals the image is anyway HEIC:
$ file screenshot.png: ---> ISO Media, HEIF Image HEVC Main or Main Still Picture Profile 

EXPECTED RESULT
1) save the file in the format specified by the extension / or by the "save as" dialog
or 
2) force the user choose image format upon save.

SOFTWARE/OS VERSIONS

Operating System: EndeavourOS 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Graphics Platform: Wayland


P.s.
1) Some web results said it was fixed in 2018, but it isn’t.
I’ve updated my system several times in the past year, and this bug still exists.

2) it doesn't crash by itself, but it leads to crash in other programs and image viewers can't open file,
 user must do extra step of converting - which requires going to command line, installing converter, etc.)
Comment 1 David Edmundson 2025-11-28 10:41:18 UTC
> spectacle -nbfo screenshot.png 

I could not reproduce with these steps

Can you run:

QT_LOGGING_RULES=*.debug   spectacle -nbfo screenshot.png 

and share output
Comment 2 Bug Janitor Service 2025-12-13 03:46:15 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-12-28 03:46:34 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.