if ( isset($_GET['SIZE'])){
$SIZE=$_GET['SIZE'];
}else{
$SIZE="";
}
if ( isset($_GET['XC'])){
$XC=$_GET['XC'];
}else{
$XC="";
}
if ( isset($_GET['TILE'])){
$TILE=$_GET['TILE'];
}else{
$TILE="";
}
if ( isset($_GET['FONT'])){
$FONT=$_GET['FONT'];
}else{
$FONT="";
}
if ( isset($_GET['POINT'])){
$POINT=$_GET['POINT'];
}else{
$POINT="";
}
if ( isset($_GET['GEOMETRY'])){
$GEOMETRY=$_GET['GEOMETRY'];
}else{
$GEOMETRY="";
}
if ( isset($_GET['LABEL'])){
$LABEL=$_GET['LABEL'];
}else{
$LABEL="";
}
if ( isset($_GET['TRIM'])){
$TRIM=$_GET['TRIM'];
}else{
$TRIM="";
}
if ( isset($_GET['OUT'])){
$OUT=$_GET['OUT'];
}else{
$OUT="";
}
$rand=rand(1, 1000);
$JPG="temp/GradLab_$rand.jpg";
$GIF="temp/GradLab_$rand.gif";
$PNG="temp/GradLab_$rand.png";
$GSIZE="-size $SIZE";
$GXC="$XC";
$GFONT="-font $FONT";
$$FONT=$FONT;
$GPOINT="-pointsize $POINT";
$GTILE="$TILE";
$GANNOTATE="-gravity northwest -annotate '0x0''$GEOMETRY'";
$GLABEL="'$LABEL'";
exec ("/usr/bin/convert $GSIZE xc:$GXC $GFONT $$FONT $GPOINT -tile gradient:$GTILE $GANNOTATE $GLABEL -trim +repage $OUT");
print "