#!/usr/bin/env bash

# Generates watermarked copies of all images referenced in the VARS 
# knowledgebase. Just run without arguments for instructions on 
# how to use it.

# Example:
# watermark_kbimages ~/Desktop/kbimages/dsg ~/Desktop/kbimages/overlay.png

VARS_HOME=$(cd $(dirname "$0")/..; pwd)
VARS_CLASSPATH=$VARS_HOME/conf:$VARS_HOME/lib/*

${JAVACMD:=java} -Xms16m -Xmx512m \
         -Duser.timezone=UTC \
         -Dfile.encoding=UTF8 \
         -classpath "$VARS_CLASSPATH" \
         org.mbari.vars.varspub.KBImageMigrator2 "$@"
