UNPKG

image-info-extractor

Version:

A lib to read image info and to extract/parse image metadata

130 lines (126 loc) 6.33 kB
export const tagTypeMap = { // #region EnvelopeRecord '1:0': {name: 'EnvelopeRecordVersion', type: 'uint16'}, '1:5': {name: 'Destination', type: 'string'}, '1:20': {name: 'FileFormat', type: 'uint16'}, '1:22': {name: 'FileVersion', type: 'uint16'}, '1:30': {name: 'ServiceIdentifier', type: 'string'}, '1:40': {name: 'EnvelopeNumber', type: 'digits'}, '1:50': {name: 'ProductID', type: 'string'}, '1:60': {name: 'EnvelopePriority', type: 'digits'}, '1:70': {name: 'DateSent', type: 'digits'}, '1:80': {name: 'TimeSent', type: 'string'}, '1:90': {name: 'CodedCharacterSet', type: 'string'}, '1:100': {name: 'UniqueObjectName', type: 'string'}, '1:120': {name: 'ARMIdentifier', type: 'uint16'}, '1:122': {name: 'ARMVersion', type: 'uint16'}, // #endregion // #region ApplicationRecord '2:0': {name: 'ApplicationRecordVersion', type: 'uint16'}, '2:3': {name: 'ObjectTypeReference', type: 'string'}, '2:4': {name: 'ObjectAttributeReference', type: 'string'}, '2:5': {name: 'ObjectName', type: 'string'}, '2:7': {name: 'EditStatus', type: 'string'}, '2:8': {name: 'EditorialUpdate', type: 'digits'}, '2:10': {name: 'Urgency', type: 'digits'}, '2:12': {name: 'SubjectReference', type: 'string'}, '2:15': {name: 'Category', type: 'string'}, '2:20': {name: 'SupplementalCategories', type: 'string'}, '2:22': {name: 'FixtureIdentifier', type: 'string'}, '2:25': {name: 'Keywords', type: 'string'}, '2:26': {name: 'ContentLocationCode', type: 'string'}, '2:27': {name: 'ContentLocationName', type: 'string'}, '2:30': {name: 'ReleaseDate', type: 'digits'}, '2:35': {name: 'ReleaseTime', type: 'string'}, '2:37': {name: 'ExpirationDate', type: 'digits'}, '2:38': {name: 'ExpirationTime', type: 'string'}, '2:40': {name: 'SpecialInstructions', type: 'string'}, '2:42': {name: 'ActionAdvised', type: 'digits'}, '2:45': {name: 'ReferenceService', type: 'string'}, '2:47': {name: 'ReferenceDate', type: 'digits'}, '2:50': {name: 'ReferenceNumber', type: 'digits'}, '2:55': {name: 'DateCreated', type: 'digits'}, '2:60': {name: 'TimeCreated', type: 'string'}, '2:62': {name: 'DigitalCreationDate', type: 'digits'}, '2:63': {name: 'DigitalCreationTime', type: 'string'}, '2:65': {name: 'OriginatingProgram', type: 'string'}, '2:70': {name: 'ProgramVersion', type: 'string'}, '2:75': {name: 'ObjectCycle', type: 'string'}, '2:80': {name: 'By-line', type: 'string'}, '2:85': {name: 'By-lineTitle', type: 'string'}, '2:90': {name: 'City', type: 'string'}, '2:92': {name: 'Sub-location', type: 'string'}, '2:95': {name: 'Province-State', type: 'string'}, '2:100': {name: 'Country-PrimaryLocationCode', type: 'string'}, '2:101': {name: 'Country-PrimaryLocationName', type: 'string'}, '2:103': {name: 'OriginalTransmissionReference', type: 'string'}, '2:105': {name: 'Headline', type: 'string'}, '2:110': {name: 'Credit', type: 'string'}, '2:115': {name: 'Source', type: 'string'}, '2:116': {name: 'CopyrightNotice', type: 'string'}, '2:118': {name: 'Contact', type: 'string'}, '2:120': {name: 'Caption-Abstract', type: 'string'}, '2:121': {name: 'LocalCaption', type: 'string'}, '2:122': {name: 'Writer-Editor', type: 'string'}, '2:125': {name: 'RasterizedCaption', type: 'undef'}, '2:130': {name: 'ImageType', type: 'string'}, '2:131': {name: 'ImageOrientation', type: 'string'}, '2:135': {name: 'LanguageIdentifier', type: 'string'}, '2:150': {name: 'AudioType', type: 'string'}, '2:151': {name: 'AudioSamplingRate', type: 'digits'}, '2:152': {name: 'AudioSamplingResolution', type: 'digits'}, '2:153': {name: 'AudioDuration', type: 'digits'}, '2:154': {name: 'AudioOutcue', type: 'string'}, '2:184': {name: 'JobID', type: 'string'}, '2:185': {name: 'MasterDocumentID', type: 'string'}, '2:186': {name: 'ShortDocumentID', type: 'string'}, '2:187': {name: 'UniqueDocumentID', type: 'string'}, '2:188': {name: 'OwnerID', type: 'string'}, '2:200': {name: 'ObjectPreviewFileFormat', type: 'uint16'}, '2:201': {name: 'ObjectPreviewFileVersion', type: 'uint16'}, '2:202': {name: 'ObjectPreviewData', type: 'undef'}, '2:221': {name: 'Prefs', type: 'string'}, '2:225': {name: 'ClassifyState', type: 'string'}, '2:228': {name: 'SimilarityIndex', type: 'string'}, '2:230': {name: 'DocumentNotes', type: 'string'}, '2:231': {name: 'DocumentHistory', type: 'string'}, '2:232': {name: 'ExifCameraInfo', type: 'string'}, '2:255': {name: 'CatalogSets', type: 'string'}, // #endregion // #region NewsPhotoRecord '3:0': {name: 'NewsPhotoVersion', type: 'uint16'}, '3:10': {name: 'IPTCPictureNumber', type: 'string'}, '3:20': {name: 'IPTCImageWidth', type: 'uint16'}, '3:30': {name: 'IPTCImageHeight', type: 'uint16'}, '3:40': {name: 'IPTCPixelWidth', type: 'uint16'}, '3:50': {name: 'IPTCPixelHeight', type: 'uint16'}, '3:55': {name: 'SupplementalType', type: 'uint8'}, '3:60': {name: 'ColorRepresentation', type: 'uint16'}, '3:64': {name: 'InterchangeColorSpace', type: 'uint8'}, '3:65': {name: 'ColorSequence', type: 'uint8'}, '3:66': {name: 'ICC_Profile', type: 'no'}, '3:70': {name: 'ColorCalibrationMatrix', type: 'no'}, '3:80': {name: 'LookupTable', type: 'no'}, '3:84': {name: 'NumIndexEntries', type: 'uint16'}, '3:85': {name: 'ColorPalette', type: 'no'}, '3:86': {name: 'IPTCBitsPerSample', type: 'uint8'}, '3:90': {name: 'SampleStructure', type: 'uint8'}, '3:100': {name: 'ScanningDirection', type: 'uint8'}, '3:102': {name: 'IPTCImageRotation', type: 'uint8'}, '3:110': {name: 'DataCompressionMethod', type: 'uint32'}, '3:120': {name: 'QuantizationMethod', type: 'uint8'}, '3:125': {name: 'EndPoints', type: 'no'}, '3:130': {name: 'ExcursionTolerance', type: 'uint8'}, '3:135': {name: 'BitsPerComponent', type: 'uint8'}, '3:140': {name: 'MaximumDensityRange', type: 'uint16'}, '3:145': {name: 'GammaCompensatedValue', type: 'uint16'}, // #endregion // #region PreObjectData, ObjectData, PostObjectData '7:10': {name: 'SizeMode', type: 'uint8'}, '7:20': {name: 'MaxSubfileSize', type: 'uint32'}, '7:90': {name: 'ObjectSizeAnnounced', type: 'no'}, '7:95': {name: 'MaximumObjectSize', type: 'no'}, '8:10': {name: 'SubFile', type: 'no'}, '9:10': {name: 'ConfirmedObjectSize', type: 'no'}, // #endregion };