View Issue Details

IDProjectCategoryView StatusLast Update
0000014fileGeneralpublic2018-08-01 13:44
Reportercbiedl Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Summary0000014: Issues with flif magic
DescriptionDebian bug: https://bugs.debian.org/864023

The current state of flif (Free Lossless Image Format) detection is fairly broken. Things don't getter by looking at the spec¹ as apparently implementation is somewhat different.

As far as I can tell from the flif sources and images I've created using the flif tool:

The dimension (width, height) information is at offset 6 (spec says: 7). They are certainly not short but "varint", a dynamic format that can hold arbitrary values without wasting space (more or less the way, a length information is stored in ASN.1).

And a minor issue: The trailing comma as in "8-bit/color," leads to doubled comma in the output.

No idea how to proceed from here. Maybe ask the original submitter for review, assuming they have a bigger collection of flif files?

Cheers,
    Christoph

¹ http://flif.info/spec.html
TagsNo tags attached.

Activities

christos

2018-08-01 13:44

manager   ~0000035

Hmm, I wrote code to parse varint, but it seems that all the image examples I have work fine with the non-varint magic...

Issue History

Date Modified Username Field Change
2018-07-22 12:50 cbiedl New Issue
2018-08-01 13:43 christos Assigned To => christos
2018-08-01 13:43 christos Status new => assigned
2018-08-01 13:44 christos Status assigned => feedback
2018-08-01 13:44 christos Note Added: 0000035