View Issue Details

IDProjectCategoryView StatusLast Update
0000430fileGeneralpublic2023-03-05 19:02
Reporterlbrtchx Assigned Tochristos  
PrioritynormalSeveritytweakReproducibilityalways
Status feedbackResolutionopen 
Product Version5.39 
Summary0000430: 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.

TagsNo tags attached.

Activities

christos

2023-03-05 19:02

manager   ~0003901

So the size of the image is the only information that should be considered image-specific?

Issue History

Date Modified Username Field Change
2023-03-03 01:38 lbrtchx New Issue
2023-03-05 19:00 christos Assigned To => christos
2023-03-05 19:00 christos Status new => assigned
2023-03-05 19:02 christos Status assigned => feedback
2023-03-05 19:02 christos Note Added: 0003901