This application writes exif metadata to the JPEG images (currently only Image ID, Document Name, Image Description and User Comments
).
The system reads the XML file as the first argument from the command line so as to know which metadata to write and where are the location of the files.
The XML file must adhere to our structure. Please see the example of the XML structure in data/test.xml
-
Download and extract the zip file from
target/releases/ubb-imaging-1.0-SNAPSHOT.zip
. The file contains all the dependencies of the project. Hence when extracting, you must keep all the files in the same folder. -
Locate your XML file (which you want the application to read from) as illustrated above.
-
Go to a command line and type :
java -jar -DfilePath="path to your xml file" path to ubb-imaging-1.0-SNAPSHOT.jar
For example:java -jar -DfilePath="/data/kole.xml" /var/lib/ubb-imaging/ubb-imaging-1.0-SNAPSHOT.jar
The application will look for the system variablefilePath
and process the file accordingly. The system provides useful error handlings and logs on foreground so that you can see the output messages as it processes the files. Files other than JPEG are skipped. -
You are done, your files are now appended with new metadata.