Home Installation User Guide Technical Info

Installing Jdatestamp


You can download the software source or binaries for Jdatestamp 1.2 from the download page.

Below is the summary of the files on the download page for the current version:

File Name Description
jdatestamp-1.2-win32.zip Windows Binary
jdatestamp-1.2-linux64.tar.gz Linux 64 bit Binary
jdatestamp-1.2-src.tar.gz Source in .tar.gz format
jdatestamp-1.2-src.zip Zipped Source

The Jdatestamp binary release includes the required executables for jpegtran (with droppatch) and jhead and is therefore ready to be used.


Steps to install the binary:

  1. Download the binary package for the required platform, copy it to the directory where you want to install and extract it:

    For Windows environment extract the downloaded file jdatestamp-1.2-win32.zip under the desired location
    For Linux/UNIX use the command:
    tar xzf jdatestamp-1.2-linux.tar.gz
    You can delete the downloaded package after verifying the installation.

  2. Add the newly created jdatestamp-1.2 directory (C:\jdatestamp-1.2 for example) to the PATH environment variable.

    On Windows Use My Computer->Properties->Advanced>Environment Variables
    to add to the PATH environment variable.

    -OR optionally for UNIX-

  3. On UNIX you can extract the Jdatestamp package directory in /usr/local or under your home directory and create a soft link to the jdatestamp executable from a directory like /usr/local/bin or ~/bin already in your PATH environment variable using commands like:
    cd ~/bin
    ln -s ../jdatestamp-1.2/jdatestamp jdatestamp

    You can also create soft links for jpegtran and jhead if you wish to use them separately though it is not necessary.

Compiling Jdatestamp Source

The below is required only if you want Jdatestamp on a platform for which binaries are not available on the download page or if you want to experiment with it or modify it.

Prerequisite Software

Build Instructions

1. If on a Windows system install MSYS and MinGW32. Add Both MinGW32 and MSYS bin directories to your path.

Follow the MinGW32 homepage recommendation and do not copy any new programs under bin dir of MSYS, though you can do so under the bin dir of MinGW32.

Use MSYS shell instead of Windows command prompt for compilations.

If on UNIX get gcc and GNU make.

2. Choose a suitable working directory, say jdatestamp-build. It would be easy if you build the prerequisite jpegtran and freetype2 software under this directory.

3. Get the jpeg-9a source. Get the contents of droppatch for jpegtran (Search for droppatch on Jpegtran page) and overwrite the corresponding files in jpeg-9a source with those from droppatch. From the MSYS/UNIX shell you can extract the .tar.gz droppatch file using the command tar xzf droppatch.tar.gz. If this is done in the jpeg-9a source directory it would overwrite the original files as desired.

Build jpeg-9a as per instructions. Run ./configure --prefix=`pwd`/install to create jpegtran install files under install directory.

Then build jpegtran using:

make test
make install

4. Download Freetype2 source version 2.1.7 or later into your working directory and extract it. Create a directory called install under Freetype2 source. Run:

./configure --prefix=< Full path of install directory created>

Build Freetype2 using:

make install

5. Download Jdatestamp source and extract the contents to your working directory. The contents are under a common directory so you do not have to create a new one for extraction. Edit the makefile/makefile-win32 file for windows and change any paths that do not exist or flags if you need to change. Now change to the jdatestamp source directory and run the command make (make -f makefile-win32 on Windows platforms). This should compile Jdatestamp and generate the jdatestamp (jdatestamp.exe on windows) executable.

6. Choose an installation directory copy the the following to it:

jdatestamp executable
jhead executable 1.9 or later for your hardware
Everything under <jdatestamp source>/installFiles. These contain the colors.txt and autocolors.txt file required by jdatestamp, a sample jdstmprc.txt options file and documentation under the docs directory.
A font file: Copy a ttf, otf or pfb file which will be used as the default font file. The Jdatestamp binaries use the Vera bold-italic font file VeraBI.ttf from Bitstream.
<jdatestamp source>/jpegtran wrapper script. Add execute permissions using the command chmod +x jpegtran.
jpeg-9a/install/bin/jpegtran executable after creating a bin directory
jpeg-9a/install/lib/*.so* files after creating a lib directory. Use cp -a copy command to preserve soft links

As mentioned in the installation instructions add the installation directory to your PATH environment variable. On UNIX you also have the option of creating a softlink to the jdatestamp executable under the installation directory from a directory existing in the PATH environment variable like /usr/local/bin or ~/bin instead of changing your PATH.

Now you should be able to run jdatestamp from the command prompt.

Home Installation User Guide Technical Info