<?php
/*=======================================================================
 *
 * image_create.php
 *
 * Autor: Marc Vollmann
 *
 =======================================================================*/

include_once ("../include/global.inc.php");
// include_once ("../include/auth.inc.php");
include_once ("../include/image.inc.php");


getSecHttpVars("1",array("signVectorData", "imgType"));

// Output of the image
if ($signVectorData != "") :
   if ($imgType == "") : $imgType = "png"; endif;

   header ("Content-type: image/" . $imgType);
   $im = createSignImage(splitRawCoordinates ($signVectorData));
   imagepng ($im);
endif;
?>
   
