Bug 419126 - No thumbnails generated for cb7 comic book archives using compression other than LZMA(2) or BZ
Summary: No thumbnails generated for cb7 comic book archives using compression other t...
Status: REPORTED
Alias: None
Product: frameworks-karchive
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.67.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-22 21:26 UTC by Alexander Schaap
Modified: 2020-03-22 21:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Schaap 2020-03-22 21:26:48 UTC
SUMMARY
The cb7 thumbnail generation support that landed in 19.12 (to address https://bugs.kde.org/show_bug.cgi?id=410696) works, but only if LZMA, LZMA2 or BZip2 compression is used. No thumbnails are generated if the cb7 archive is compressed with Deflate, Deflate64, Copy or PPMd.

STEPS TO REPRODUCE
1. Compress an image (of a supported format such as JPG or PNG) with `7z` into a cb7 archive:
 for m in {lzma,lzma2,ppmd,deflate,deflate64,copy,bzip2}; do 7z a -m0=$m test-$m.cb7 filename.png; done
2. Enable previews in Dolphin
2. Navigate to the directory containing the new files in Dolphin

OBSERVED RESULT
Thumbnails are shown for the cb7 files compressed with LZMA, LZMA2 and BZip2, but a generic icon for those compressed via Deflate, Deflate64, Copy, and PPMd.

EXPECTED RESULT
Thumbnails are shown for all cb7 files, regardless of compression used.

SOFTWARE/OS VERSIONS
Windows               : n/a
macOS                 : n/a
Linux/KDE Plasma      : 64-bit, 4.19.86-gentoo
KDE Plasma Version    : 5.17.5
KDE Frameworks Version: 5.67.0
Qt Version            : 5.14.1

ADDITIONAL INFORMATION

The same issue arises when opening the created cb7 files with Okular; it will not open cb7 files unless they are compressed with LZMA, LZMA2 or BZip2. Presumably a shared component (K7Zip?) is causing this. Ark and MComix read cb7 files using any compression methods, as expected.

7-Zip 16.02 (64-bit)
Dolphin 19.12.3
kio-extras 19.12.3
Comment 1 Kai Uwe Broulik 2020-03-22 21:32:01 UTC
Re-assigning to KArchive, whose 7Zip extraction capablities are used here.