* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301 USA */ /* $Id: dump-image.php,v 1.1 2008/11/27 10:02:29 manolis Exp $ */ error_reporting(E_ALL); /* Make PEL speak the users language, if it is available. */ setlocale(LC_ALL, ''); require_once dirname(__FILE__) . '/../PelDataWindow.php'; require_once dirname(__FILE__) . '/../PelJpeg.php'; require_once dirname(__FILE__) . '/../PelTiff.php'; $prog = array_shift($argv); $file = ''; while (!empty($argv)) { switch ($argv[0]) { case '-d': Pel::setDebug(true); break; case '-s': Pel::setStrictParsing(true); break; default: $file = $argv[0]; break; } array_shift($argv); } if (empty($file)) { printf("Usage: %s [-d] [-s] <filename>\n", $prog); print "Optional arguments:\n"; print " -d turn debug output on.\n"; print " -s turn strict parsing on (halt on errors).\n";