[FEATURE] cbz (i.e. zip) support
leaumar opened this issue · 0 comments
Is your feature request related to a problem? Please describe.
QPV cannot open cbz files, so it can't display common "immutable albums" like comics/manga, event shoots, art commissions, etc
Describe the solution you'd like
QPV should be able to read cbz files by unpacking them in memory (you don't even need to unpack all at once, you can just inflate a zip's items selectively on navigation, it's basically a nested decode step) or to a temp folder. Cbzs are usually treated the same way as a folder to keep navigation between mixed content intuitive, i.e. there's often a hotkey for next image and a separate hotkey for next folder/archive.
Additional context
You can literally make a cbz by just zipping a few images and renaming the extension. It's a great method to keep a set of images together and open an album as a whole in a viewer, on top of several filesystem benefits (transfer/backup speed, atomicity, cover as thumbnail in explorer). I could lend a hand with the code if need be, but mind that last time I wrote c# was in college :p
You could consider cbr (rar), but personally I would boycot rar for being both nonfree and not significantly better than other compressors, it's poison to the ecosystem imo. cb7 (7zip) is a realistic alternative to support imo but it's not nearly as ubiquitous as zip. These 3 are all the cb* types I know of.