artefactual-labs / archivematica-par

Parcore development fork of the free and open-source digital preservation system designed to maintain standards-based, long-term access to collections of digital objects.
https://parcore.readme.io/
GNU Affero General Public License v3.0
0 stars 0 forks source link

PROBLEM: file-format "description" property is returning the wrong value #13

Open peterVG opened 4 years ago

peterVG commented 4 years ago

The file-format "description" response is incorrectly using the fpr.formatverion.description value which is actually the name of the fpr.formatversion (and sometimes the file extension). The par-api.json example uses the PRONOM descriptions for this property, e.g. "Portable Network Graphics (PNG) was designed for the lossless, portable, compressed storage of raster images. PNG provides a patent-free replacement for GIF and can also replace many common uses of TIFF. Indexed-color, grayscale, and truecolor images are supported, plus an optional alpha channel. Sample depths range from 1 to 16 bits. PNG is designed to work in online viewing applications, so it is fully streamable. It can store gamma and chromaticity. PNG also detects file corruption." https://www.nationalarchives.gov.uk/PRONOM/Format/proFormatSearch.aspx?status=detailReport&id=664 We currently don't store this PRONOM description info in the FPR but it can be found in machine readable format at: https://raw.githubusercontent.com/openpreserve/fido/master/fido/conf/formats-v96.xml

peterVG commented 4 years ago

If we implement https://github.com/artefactual-labs/archivematica-par/issues/17 then this Issue becomes redundant as the format description would be one of the values we import from the PRONOM data dump.