/usr/bin/jp2info is in pirl-image-tools 2.3.8-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #! /bin/sh
# Shell script wrapper around the fop program,
# Copyright 2012 by Mathieu Malaterre <malat@debian.org>
#
# Licensed under the same terms as pirl itself, that is under
# the conditions of the LGPL-2 licence.
# Include the wrappers utility script
. /usr/lib/java-wrappers/java-wrappers.sh
# comment this line if you want fop to run without headless property,
# or write a line containing
# HEADLESS=
# in your fop configuration file.
HEADLESS=-Djava.awt.headless=true
# We prefer to use openjdk or Sun's java if available
find_java_runtime openjdk sun || find_java_runtime
find_jars pirl
LOG_OPTION=-Dorg.apache.commons.logging.Log=org.apache.fop.util.CommandLineLogger
# LOG_DEBUG_OPTION=-Dlog4j.debug
for file in "$@" ; do
case $file in
*.j2k)
run_java $HEADLESS $LOG_OPTION PIRL.Image_Tools.JPEG2000_Codestream_Info "$file";;
*.jp2)
run_java $HEADLESS $LOG_OPTION PIRL.Image_Tools.JP2_Info "$file";;
*)
run_java $HEADLESS $LOG_OPTION PIRL.Image_Tools.JP2_Info "$file";;
esac
done
|