15 – File Validation

Using JHOVE (Still image) or FITS (A/V) to validate files.

Using JHOVE 1.22.1

Using later versions of JHOVE (post 1.22.1) may return errors when validating against files created using Capture One software. This method uses the command line in Windows to batch validate still image files. Unless environment variables are setup, this batch file should be run in the JHOVE folder. The output files will be included in the JHOVE folder unless replacing column D with the file path for the output files. Quotes have been added in the template to encapsulate spaces in folder names.

  1. In a spreadsheet, create five columns to the following data (some fields contain a space at the end):
    • Column A: call jhove.bat -c conf/jhove.conf -k “
    • Column B: File location and identifier for file, including file extension. Can copy all files, hold shift, and right click then click Copy as Path and paste into spreadsheet or do a directory print if files are in multiple folders.
    • Column C (quotation with space after): ” -o
    • Column D: Output file name. Typically the same as the input file name with the .txt extension replacing image extension. Copy and paste the input file column B into Column D and with the pasted value selected, perform a find and replace of “.tif” with “.txt”. Remove folder path from text files if you want them output into a different folder for quick checking.
    • Column E: =concatenate(A2,B2,C2,D2)

2. Copy Column E and then paste as values only in Column F.

3. Copy the values only Column F into a text file (Notepad) and then save with the extension .bat in the JHOVE folder. You may need to copy a quotation mark in a command and run a find and replace in Notepad with a typed quote in case of formatting issues. Double-click the .bat file to run, or you may need to right-click and Run as Administrator. JHOVE will create output text files. While the process is running, you will not receive any indication which file it’s currently running out.

4. In Windows Explorer, run a search for “Well-Formed and Valid”. If the number of results match the number of image files then there shouldn’t be any corrupted files.

5. Move the JHOVE output text files into their corresponding image master file locations.

Using FITS

Use the same method as the JHOVE example above to help run FITS against files. The command that typically gives validation and checksum results is: fits.bat -i file.tif -xc -o file.txt.

  1. Column A should have main program and input option: call fits.bat -i “
  2. Column B should have your file location and extension.
  3. Column C should have main option and output option (See FITs website for meaning of options): ” -xc -o
  4. Column D should have your output text file. Include quotes at the end of the Column C value and the text file if you are stipulating a folder path for the file to go instead of the current folder the batch file will run in.
  5. Column E should have your concatenate formula.
  6. Column F should have your pasted values of Column E.
  7. Create your batch file and run it.