wader / fq

jq for binary formats - tool, language and decoders for working with binary and text formats
Other
9.74k stars 227 forks source link

exr file format #491

Open adammaj1 opened 1 year ago

adammaj1 commented 1 year ago

the EXR file format, the professional-grade image storage see https://github.com/AcademySoftwareFoundation/openexr Now

fq . AllHalfValues.exr
error: AllHalfValues.exr: probe: failed to decode (try -d FORMAT)

fq -d exr . AllHalfValues.exr
error: AllHalfValues.exr: exr: format group not found
wader commented 1 year ago

Hi, yes that would be nice. The basic file structure layout looks quite straight forward https://openexr.readthedocs.io/en/latest/OpenEXRFileLayout.html (even has sample "decode" at the end).

Would you like to help add a decoder? i'm a bit busy with other things at moment so can't promise when i get to it. But if you want to start before that i can help out of course.

adammaj1 commented 1 year ago

I can try. Any tips ? where I should start ?

https://github.com/wader/fq/blob/master/doc/dev.md

wader commented 1 year ago

Sorry i didn't see the edited comment. Yes that is good start, and maybe good to look at some format decoder that looks similar, maybe tiff or png?