I have a ZIM file and would like to have a look at its content. In particular count the number of articles and images, and maybe browse images.
How to do that? Preferably on Linux but instructions for other systems are OK too.
I don’t want to count images by opening the ZIM in Kiwix and browsing all thousands of pages and counting manually.
It is not uncompressible by XZ nor ZIP:
$ unxz wikivoyage_en_all_2015-09.zim
unxz: wikivoyage_en_all_2015-09.zim: File format not recognized
$ zipinfo wikivoyage_en_all_2015-09.zim
Archive: wikivoyage_en_all_2015-09.zim
[wikivoyage_en_all_2015-09.zim]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
zipinfo: cannot find zipfile directory in one of wikivoyage_en_all_2015-09.zim or
wikivoyage_en_all_2015-09.zim.zip, and cannot find wikivoyage_en_all_2015-09.zim.ZIP, period.
unxz <file>
?unxz: wikivoyage_en_all_2015-09.zim: File format not recognized
.