You can add information to the metadata header of a MrSID or JPEG 2000 file by creating new USER tags. To display the names and values of existing USER tags for an image, use the mrsidinfo tool or the ExpressView Browser Plug-in. To add custom tags to an image you must use the -metadatafile
switch along with an auxiliary file.
Twelve user-defined tags are available by default, so the metadata auxiliary file is a simple text file that consists of no more than 12 lines of text, a line being defined by a carriage return character. The order of the text must be as follows:
Metadata | Tag |
---|---|
Company Name | USER::COMPANY_NAME |
Copyright | USER::COPYRIGHT |
Credit | USER::CREDIT |
Summary |
USER::SUMMARY |
Keywords |
USER::KEYWORDS |
Comments |
USER::COMMENTS |
Image ID |
USER::IMAGE_ID |
Imaging Date |
USER::IMAGING_DATE |
Imaging Time |
USER::IMAGING_TIME |
Source Device |
USER::SOURCE_DEVICE |
Scan Info |
USER::SCAN_INFO |
Geographic Location |
USER::GEOGRAPHIC_LOCATION |
You can also add your own custom tags using the mrsidgeometa
tool included with your product (see mrsidgeometa).
Blank lines may be used to ignore certain fields.
Here is an example of a custom metadata text file. The blank lines below represent ignored fields.
MyCompany, Inc.
Copyright (C) 2017
This is a picture of my neighborhood
Image ID: 123
January 3, 2017
7:35pm
300dpi
Seattle, WA