Re: [hackers] [farbfeld] Add support for .bz2 to 2ff

From: FRIGN <>
Date: Thu, 14 Jul 2016 10:38:05 +0200

On Thu, 14 Jul 2016 09:55:07 +0200
Willy Goiffon <> wrote:

Hey Willy,

> If figured it would be great to have `2ff` support bzip2 compressed
> farbfeld images, in order to start promoting this format.
> Attached is a patch adding support for bzip2 compressed files to
> `2ff`.

thanks for your patch. At first I was worried that it might expand
the scope of 2ff too much, but it really is no problem.
However, I'm worry about other people approaching with questions to
also add lzma and other formats for completeness.

You probably had sent[0] in mind when you wrote this patch, but
looking at the filter rules

        static Filter filters[] = {
                { "\\.(png|jpg|gif)$", "2ff" },

it is easy to add

        static Filter filters[] = {
                { "\\.ff.bz2$", "bunzip | 2ff" },

with the same effect.

Can you give me a good reason or context example where adding the
compression support to 2ff proves to be useful?




Received on Thu Jul 14 2016 - 10:38:05 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 14 2016 - 10:48:18 CEST