View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000555 | file | General | public | 2024-08-26 17:22 | 2024-08-26 17:22 |
Reporter | jsummers | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 5.45 | ||||
Summary | 0000555: Issues with Lytro Light Field Picture pattern | ||||
Description | Regarding the "Light Field Picture" pattern from magic/Magdir/images as of 2024-08-25... An insufficient number of ">"s causes bytes 4-7 of the 8-byte PNG-inspired signature to be ignored, and also makes it possible for the version number to be printed without the format name. | ||||
Steps To Reproduce | $ echo -en '\x89LFP\x0d\x0a\x1a\x0a\x00\x00\x00\x01\x00\x00\x00\x00' > 1lfp.dat $ echo -en '\x89LFP\xff\xff\xff\xff\x00\x00\x00\x01\x00\x00\x00\x00' > 2notlfp.dat $ echo -en '\x89LFP\x0d\x0a\x1a\x0a\x00\x00\xff\xff\xff\xff\xff\xff' > 3maybelfp.dat $ file *.dat 1lfp.dat: Lytro Light Field Picture, version 1 2notlfp.dat: Lytro Light Field Picture, version 1 3maybelfp.dat: , version 65535 Expected results: $ file -m lfp-new.magic *.dat 1lfp.dat: Lytro Light Field Picture, version 1 2notlfp.dat: data 3maybelfp.dat: Lytro Light Field Picture, version 65535 The correct result for 3maybelfp.dat is debatable. I think testing the bytes at offset 12 is overkill. | ||||
Additional Information | [Found using Mgchkj <https://github.com/jsummers/mgchkj>.] The attached file contains my suggested replacement pattern. Format info: http://optics.miloush.net/lytro/TheFileFormat.aspx Some example files: http://lightfield-forum.com/2012/08/lytro-sample-lfp-files-for-download/ | ||||
Tags | No tags attached. | ||||