FLIF file format support for MP

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
Marsu42
Posts: 73
Joined: Tue Sep 30, 2014 6:55 am

FLIF file format support for MP

Post by Marsu42 » Fri Oct 07, 2016 10:25 pm

It's in XnView Classic, but not in MP (yet) - could it be added, too, pretty please with sugar on it :-) ?

It's such a nice format and is really ahead of the lossless competition. Plus it's oss and (supposed to be) patent free, thus supporting it would be a show of faith itself. And as it's actively developed so the dev should be open to communication (unlike bpg or xr).

Here was the request ticket for Classic: http://newsgroup.xnview.com/viewtopic.p ... if#p134729

User avatar
XnTriq
Moderator & Librarian
Posts: 5294
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: FLIF file format support for MP

Post by XnTriq » Sat Oct 08, 2016 2:15 am


Marsu42
Posts: 73
Joined: Tue Sep 30, 2014 6:55 am

Re: FLIF file format support for MP

Post by Marsu42 » Sat Oct 08, 2016 2:23 pm

I don't get it, I really don't...

... so I downloaded the alledged "working" flif plugin (from http://www.encode.ru/threads/2321?p=478 ... #post47861) and put it into my respective x86 and x64 XnViewMP plugin folders. And, who would have guessed, I now can *save* a .flif file. Alas, I cannot *load* it, it doesn't show up in the file list and if I try to force to read this very .flif via command line it's "File can't be loaded".

In any case, this flif plugin is outdated - it needs to be recompiled with the new and incompatible 0.2 flif code... ImageMagick just updated, too. So for reference I'm attaching a working 0.2 flif sample, only if you're able to load this one all's working.
Attachments
wizard.flif.zip
FLIF 0.2 sample image
(71.82 KiB) Downloaded 42 times

User avatar
XnTriq
Moderator & Librarian
Posts: 5294
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: FLIF file format support for MP

Post by XnTriq » Sat Oct 08, 2016 8:45 pm

Marsu42 wrote:I don't get it, I really don't...
Same here :-|

I did my tests with MP v0.83 as well as Classic v2.36 and the beta of v2.37. No matter which libflif.dll I use — the one provided by Pierre (flif.zip) or those available from encode.ru (FLIF_ca72a18.rar): Writing FLIFs seems to work, reading doesn't.

Marsu42
Posts: 73
Joined: Tue Sep 30, 2014 6:55 am

Re: FLIF file format support for MP

Post by Marsu42 » Sun Oct 09, 2016 9:18 am

XnTriq wrote:
Marsu42 wrote:I don't get it, I really don't...
Same here :-|
Always nice not to be the only one being lost :-) ... let's hope some dev figures out why reading .flif doesn't work, I have no idea what api XnView expects from a dll.

Edit 1: I've requested a new dll: http://encode.ru/threads/2321-FLIF-Free ... #post50482

Edit 2: The other forum has the solution - the official x86 dll works in Classic and MP, but the x64 dll fails with MP ... https://github.com/FLIF-hub/FLIF/releases

Edit 3: Here are the flif 0.2 dlls working in both x86 and x64: http://encode.ru/threads/2321-FLIF-Free ... #post50489
... but here's a copy/paste for the bug report from the other forum:
however, mp 0.83 seems to have a bug, the saved file has 0 bytes, but the real filecan be found in thee program's dir and is called C.

User avatar
XnTriq
Moderator & Librarian
Posts: 5294
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: FLIF file format support for MP

Post by XnTriq » Sun Oct 09, 2016 8:10 pm

Thanks a lot, Marsu42 :-D

kwukduck
Posts: 2
Joined: Thu Oct 20, 2016 2:07 pm

Re: FLIF file format support for MP

Post by kwukduck » Thu Oct 20, 2016 2:13 pm

Great to see FLIF support. I hope it gets fully implemented including options for tweaking settings and lossy format. This format has great potential, afaik it beats every other format in every aspect.

Marsu42
Posts: 73
Joined: Tue Sep 30, 2014 6:55 am

Re: FLIF file format support for MP

Post by Marsu42 » Thu Oct 20, 2016 11:26 pm

kwukduck wrote:This format has great potential, afaik it beats every other format in every aspect.
Not quite, the author himself states that other formats are better for lossy photo compression than lossy flif. The advantage of flif ist great 100% lossless mode, no generation loss when lossy, and it doesn't care that much for image content while other formats are tuned for photgraphy and not for example diagrams.

However, for one-time compression of photographic content, bpg (hevc base) is the best atm, but burdened by patents ... webp (vp8-based) has a very competent lossy-lossless mode and will get supercharged once it's upgraded to av1 base.

damian101
Posts: 7
Joined: Fri Dec 22, 2017 12:43 am

Re: FLIF file format support for MP

Post by damian101 » Tue Feb 27, 2018 12:54 pm

I am still waiting for FLIF implementation in XnView MP!
I had to install the classic XnView just to be able to look at FLIF files.

User avatar
xnview
Author of XnView
Posts: 29888
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: FLIF file format support for MP

Post by xnview » Sun Mar 04, 2018 4:52 pm

damian101 wrote:I am still waiting for FLIF implementation in XnView MP!
I had to install the classic XnView just to be able to look at FLIF files.
FLIF is already supported in XnViewMP
Pierre.

Post Reply