Skip to content

Feature: load images from archives without manual extract #672

@bobrofon

Description

@bobrofon

Hi, all.

In my day-to-day activities I sometimes work with archives of images (e.g., scans of documents, images inside backups). And I implemented a feature to work with archived images from feh without manually extracting them. I wonder if it may be useful to have this feature upstream.

The implementation is similar to cURL integration, but instead of the libcurl library, the libarchive library is used. You can check it out here: https://github.com/bobrofon/feh/tree/libarchive.

The performance with tar.gz-like archives is expectedly awful, and it's reasonable to hide archive support under an option, but with zip and rar archives it works pretty well. As a bonus, archive support makes it able to read .CBR/.CBZ/.CB7/.CBT (Comic Book Archive) file formats using feh, because they are basically archives of images.

The libarchive source code is published under the 2-clause BSD license mostly, and as I understand it, it should be compatible with feh.

What do you think about this feature? Would it be worth it to merge it into the main project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions