The mrsidgeoinfo tool displays basic information about an image, such as width, height, file format, and more. Various image formats are supported. For compressed images, GeoExpress also displays the compression ratio of the image and the nominal size.
For MrSID images, the mrsidgeoinfo tool also displays the generation of the MrSID format used during compression. For example, the tool displays that the image is stored in the MrSID Generation 4 (MG4) format.
By default the mrsidgeoinfo tool is installed in the following directory:
C:\Program Files\LizardTech\GeoExpress\bin
Switch | Value | Notes |
---|---|---|
-inputformat / -if |
string |
Identifies the input file format. Accepted values are:
|
-mosaic / -mos |
Identifies the input file as an AUX file of mosaic images. Using the ‑mosaic switch creates a flat output file. |
Switch | Value | Notes |
---|---|---|
-metadata / -meta | Show metadata tags and values. | |
-tiles / -tile | Show tile information (composite MG3 only). | |
-genProfile / -prof | string | Generate JP2 profile. |
-worldFile / -wf | Generate world file. | |
-ignoreWorldFile / -ignorewf | Ignore georeferencing from world files. | |
-tfwOverride / -tifw | Use .tfw file (for TIFF images only). |
|
-projectDims / -dims | Show image dimensions at various resolution levels. | |
-wkt | Display any well-known text string (WKT) information for the image. | |
-aoi | Display any Area of Interest (AOI) information for the image. | |
-inputFile / -input | string | Name of input file (required). |
-stats | Display image statistics for each image band. The image statistics include the minimum value, the maximum value, the mean value, and the standard deviation. |
Switch | Value | Notes |
---|---|---|
-h / -? | Show short usage message. | |
-help | Show detailed usage message. | |
-version / -v | Show version information. | |
-quiet | Don’t show informational message. | |
-log | string | Write output to log file. |
-progress | string | Progress meter style. Acceptable values: none , default , timer |
This command displays the basic image information for a MrSID image named image.sid
:
mrsidgeoinfo image.sid
This command displays the basic image information and the metadata for a TIFF image named foo.tif
:
mrsidgeoinfo -meta foo.tif
This command displays metadata information for an AUX file containing JPEG format images named mosaic.txt
:
mrsidgeoinfo -mos -if jpg mosaic.txt
When the target of a mrsidgeoinfo
command is a .sid
file, one element of returned information is the modifications performed on current and past iterations of the image, listed along with MrSID image info.
For example, if you first reproject an image, then crop the results of that operation, then apply a watermark, the final resulting image will indicate CROPPED
REPROJECTED
WATERMARKED
.
Modifications that can be listed include:
ALTERED-COLOR
: The actual color values of the pixels were changed from the original. Dynamic range stretching will set this, as will encoding color pixels from a CLUT.
CHANGED-COLORSPACE
: The colorspace was changed (RGB to grayscale usually, but there are others)
CHANGED-DATATYPE
: The bit depth of the image was changed from the original image. This is typically the result of dynamic range stretching.
COMPRESSED
: The image was compressed lossily
COMPRESSED-PERBAND
: This indicates that per-band compression was used on an MG4 file.
CROPPED
: The image was cropped from the original (the image bounds were reduced)
EMBEDDED
: The image was embedded into a larger area (the image bounds were increased, or padded)
INTERPRETED-ALPHA
: This means that alpha was not present in the original image but was calculated (from transparency, for example); or that alpha was present in the original image but was removed (such as translated to transparency)
MASKED
: A mask was applied to the original image (Area of Interest or crop by vector overlay)
MOSAICKED
: The image is a mosaic of multiple files
OPAQUE-ALPHA
: Alpha was added but it is entirely opaque.
QUANTIZED
: Pixel values were quantized, for example during compression of floating-point datasets
REORDERED-BANDS
: The number and/or order of bands is different from the original image
REPROJECTED
: The image was reprojected from the original image projection
SCALED
: The original image was scaled
WATERMARKED
: A watermark was applied to the image
The modifications are listed in the results alphabetically, not historically; the listing does not give an indication of the order in which the modifications were performed.