View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000430 | file | General | public | 2023-03-03 01:38 | 2023-03-05 19:02 |
Reporter | lbrtchx | Assigned To | christos | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | feedback | Resolution | open | ||
Product Version | 5.39 | ||||
Summary | 0000430: is there a way to get just the basic metadata about a file type without too much specifics about the particular file? | ||||
Description | if you use: file --brief --mime "$file" you would get too little, practically unusable info. file --brief "$file" would give you what you need when it comes to pdf files (yes, the structure of pdf files depends on their version), but with images it gives you data relating to the specific file, such as: org/wikipedia/en/Big_Bang_files/16px-He1523a.jpg|JPEG image data, baseline, precision 8, 16x18, components 3 org/wikipedia/en/East_Germany_files/20px-DDR_-_helfer_der_volkspolizei.jpg|JPEG image data, baseline, precision 8, 20x13, components 3 org/wikipedia/en/Country_code_top-level_domain_files/23px-Flag_of_Hong_Kong.png|PNG image data, 23 x 15, 8-bit colormap, non-interlaced org/wikipedia/en/Country_code_top-level_domain_files/45px-Flag_of_Venezuela.png|PNG image data, 45 x 30, 8-bit colormap, non-interlaced is there a way to go like: file --brief --no-specifics "$file" to just get: JPEG image data, baseline, precision 8, components 3 PNG image data, 8-bit colormap, non-interlaced If not I would propose it as a recommendation/RFE of sort. You could always use some code to clean up the output from file, but it would be optimal is file had that option. | ||||
Tags | No tags attached. | ||||