Bug 467950

Summary: Exporting a WBMP file on Digikam MacOS creates corrupt file.
Product: [Frameworks and Libraries] frameworks-kimageformats Reporter: Geoff King <gsking1>
Component: generalAssignee: Alex Merry <alex.merry>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid, kdelibs-bugs, metzpinguin
Priority: NOR    
Version: 5.102.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Geoff King 2023-03-29 23:09:31 UTC
SUMMARY
WBMP file is created when exporting from Digikam, but is corrupt and small.  

See Digikam bug report thread here:  https://bugs.kde.org/show_bug.cgi?id=467675#c25

STEPS TO REPRODUCE
1. Digikam 8.0.0 beta1. > Image Editor > Open a JPG for editing.
2. Click Export and select WBMP format
3. Export file.

OBSERVED RESULT
A file is exported, but is unusable.  When trying to open it Digikam says it is corrupt.  

EXPECTED RESULT
An image file.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 12.6.3 Intel
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Digikam Build date: 3/26/23 8:24 AM
Comment 1 Albert Astals Cid 2023-03-30 08:11:06 UTC
What is a WBMP file?
Comment 2 Maik Qualmann 2023-03-30 08:41:00 UTC
I had to do some research now. The QImageReader reports reading and writing this format. But after looking through the KImageFormatsPlugin sources for a while, I think this support comes straight from Qt. I also think Geoff is confusing this WBMP format with a modern Webp. But it is a format from old mobile phones in 1-Bit black and white format. The bug report can be closed.

Maik