sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

Support .cbz and .cbr

Open PurpleAzurite opened this issue 3 years ago • 6 comments

Thank you for the program. It is easily the best pdf viewing experience I had. Please consider supporting CBZ and CBR files which are the standards for digital comic books.

PurpleAzurite avatar Sep 20 '21 05:09 PurpleAzurite

Supporting other formats is something that I want to do at some point but it is not in the immediate future because it takes a lot of work.

ahrm avatar Sep 20 '21 08:09 ahrm

I just found out that mupdf supports cbz so we were supporting it already! The only thing was that files with cbz extension were not shown in the open file menu which is fixed in 1f5565e5d14aed7b74e3bd721e9a97c38671386d .

ahrm avatar Sep 24 '21 21:09 ahrm

Yes i just found out about this by accident! It could be nice if .cbr files are also supported. Simply adding .cbr to the QFileDialog options should be enough.

PurpleAzurite avatar Oct 09 '21 10:10 PurpleAzurite

Yes i just found out about this by accident! It could be nice if .cbr files are also supported. Simply adding .cbr to the QFileDialog options should be enough.

No, mupdf does not support .cbr because (I assume) unlike zip, RAR is a proprietary file format.

ahrm avatar Oct 09 '21 14:10 ahrm

No, mupdf does not support .cbr because (I assume) unlike zip, RAR is a proprietary file format.

You're right, the most used unrar is using a GPL-noncompatible license, reference

There is also a unrar-free https://gitlab.com/bgermann/unrar-free , released in GPL v2. I haven't used it, and I'm not sure if it's reliable enough.

It may be possible bundle unrar-free into sioyek. Is it worth the effort?

Endle avatar Nov 12 '21 14:11 Endle

No, mupdf does not support .cbr because (I assume) unlike zip, RAR is a proprietary file format.

You're right, the most used unrar is using a GPL-noncompatible license, reference

There is also a unrar-free https://gitlab.com/bgermann/unrar-free , released in GPL v2. I haven't used it, and I'm not sure if it's reliable enough.

It may be possible bundle unrar-free into sioyek. Is it worth the effort?

That's interesting. I'll take a look but adding cbr support is not currently high on my priority list. (converting a cbr file to cbz is extremely easy, you just unrar the cbr file and then zip it again)

ahrm avatar Nov 12 '21 18:11 ahrm