Validating TIFF Files
Validating your TIFF files for Preservation on a MacComments and corrections welcome!
Requirements
-OS X 1-.3 or higher
-Terminal
-Comfort with command-line/OS X directory structure
1. Download JHOVE. (http://hul.harvard.edu/jhove/download.html)
This document is written to work with JHOVE 1.0
2. After you uncompress the file, you should have a folder called "jhove". Put this folder wherever you would like it to live, but make sure you know the absolute path to the directory (this will be necessary in the next step, and later) I put it in /Applications and also tried /usr/bin/. If you try something like the latter path, you would need to move the file in terminal and would need root/sudo privileges.
(There is probably an optimal place to put it, but I don't know where that would be.)
3. Inside your jhove folder there is a subfolder called "conf". Inside of this folder is your configuration file. It is called jhove.conf. Open this file with a text editor and edit only the following line:
<jhoveHome>/users/stephen/projects/jhove</jhoveHome> (this is their sample location)
to the location of the jhove folder (from Step 2), in my case:
<jhoveHome>/Applications/jhove</jhoveHome>
(A per the documentation, you could also, at this point, edit the location of the Temp directory. The default is /var/tmp, which seemed fine to me.)to the location of the jhove folder (from Step 2), in my case:
<jhoveHome>/Applications/jhove</jhoveHome>
4. In the main "jhove" directory, open the file called "jhove" and edit the following:
JHOVE_HOME=/users/stephen/projects/jhove
to the location of the jhove folder (from Step 2), in my case:
JHOVE_HOME=/Applications/jhove
to the location of the jhove folder (from Step 2), in my case:
JHOVE_HOME=/Applications/jhove
JAVA_HOME=/usr/java # Java JRE directory
to the location of the java JRE folder on a Mac:
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home # Java JRE directory. This is where it is on a Mac!
5. You are now ready to give JHOVE a spin! Start by loading up the configuration file by entering:to the location of the java JRE folder on a Mac:
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home # Java JRE directory. This is where it is on a Mac!
/absolute/path/to/jhove -c /absolute/path/to/jhove/conf/jhove.conf
in my case:
/Applications/jhove/jhove -c /Applications/jhove/conf/jhove.conf
/absolute/path/to/jhove relative/path/to/ImageFile -m TIFF-hul -c /absolute/path/to/jhove/conf/jhove.conf
in my case, an example would be:
in my case, an example would be:
/Applications/jhove/jhove Desktop/TIFValidation/sampleFiles/78729.tif -m TIFF-hul -c /Applications/jhove/conf/jhove.conf
7. This should result in a lengthy report on your TIFF file, but they key points you are looking for are the STATUS and any Error Messages. For valid TIFFs, you will actually get a STATUS message that the file is well formed, but not valid, with the sole error message, like so:
Format: TIFF
Version: 6.0
Status: Well-Formed, but not valid
SignatureMatches:
TIFF-hul
ErrorMessage: Invalid DateTime separator: 2007-02-01T13:42:24
MIMEtype: image/tiff
This is a known error, and your file is actually perfectly valid. Other status/error messages are indications of issues with your TIFF files.Version: 6.0
Status: Well-Formed, but not valid
SignatureMatches:
TIFF-hul
ErrorMessage: Invalid DateTime separator: 2007-02-01T13:42:24
MIMEtype: image/tiff
Previous page: VRC Tech Corner
Next page: Our Collection