format_parser
format_parser copied to clipboard
file metadata parsing, done cheap
PNGs for instance can be indexed color or RGB or RGBA, TIFFs can be RGB, CMYK, Grayscale... and it would be great to have that information in the output.
Currently, the `MP3Parser` is very lenient with what it attempts to parse, leading to it attempting to parse a number of file formats that it shouldn't. This has necessitated a...
Metadata is already currently retrieved for heif and heic formats. The set of information returned by the current logic, depending whether such information is contained in the analysed file, is...
Faraday gem version used in this project is quite old (from early 2019). It might be nice to upgrade it so that projects using `format_parser` are allowed to benefit from...
At the moment, results are returned as a regular hash, with keys and values containing a mix of strings and symbols: ```ruby {"nature"=>:archive, "intrinsics"=>nil, "entries"=>[{:type=>:file, :size=>53335, :filename=>"foo"}, {:type=>:file, :size=>292210, :filename=>"bar"},...
Format_parser can parse ZIP files, but it would be really nice to get similar output for RAR files.
With our fixtures id3tag raises an exception when addressing `Tag#genre` apparently. ``` 1) FormatParser::MP3Parser decodes and estimates duration for a CBR MP3 Failure/Error: value = tag.public_send(k) NoMethodError: undefined method `gsub'...
The new Apple x Pixar USDZ file format is going to be a thing, so we should try to parse it. Since it's a `zip` file of sorts maybe we...
Edit to add: [here](https://we.tl/IAF9usHehy) is a link to a M4A sample file I made that I'm releasing here under an MIT license if someone wants to take this on.
to prevent nasty display shenanigans and problems with JSON-encoding them