use CGI; my $q = CGI->new(); my $height = $q->param('height'); my $width = $q->param('width'); # # Include you GD stuff here... #