validate
Last update: June 6, 2024
- Topics:
- Dynamic Media Classic,SDK/API
CREATED FOR:
- Developer
- User
Image validation utility. This command-line utility verifies image files to make sure they are valid and can be read by Image Serving without difficulty.
All non-PTIFF image files must pass validation before the file is made available to Image Serving as a source image. PTIFF images should be validated after potentially unreliable copy operations.
Usage
validate *
fileType* [ *
options*] [ *
sourceFile* [ … ]]
fileType |
-jpeg | -ptif | -any Source file type; at least one must be specified (-any allows the same image file types supported by IC). |
options | Other command options (see below). |
sourceFile | Image file. None or more, separated by spaces. |
Returns
0 if successful. If an error occurs, a non-zero value is returned and error details are sent to stderr
.
Options
-fileList listFile | Specifies a separate text file containing the list of image files. One record per file. If -fileList is included, sourceFile must not be specified. |
-readPixels | Enables verification of the entire image file. By default, only the image header is validated. |
-validatecolorprofile | Verifies the embedded color profile for validity. By default, the body profile is not checked. |
-reject16BitPerComponent | Rejects images with 16 bits per image component. Always specified by the Image Server when it validates remote source images. |
-verbose | Prints more information if the image is invalid. |
-silent | Disables stdout / stderr output. Only a status is returned. |
-stopOnError | Terminates processing when a file validation failure occurs, even if additional files are yet to be validated. By default, processing continues when a validation error occurs |
-version | Returns version info for this utility. Specify with no other options. |
recommendation-more-help
a26166cd-f2f4-45ce-996d-96a0f0d6cf49