Skip to content

Commit

Permalink
fixes:#6
Browse files Browse the repository at this point in the history
added wordwarp
  • Loading branch information
gautamkrishnar committed Apr 15, 2016
1 parent 4555131 commit f9a17b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion billgen-API.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
}
else if(filter_input(INPUT_GET, 'text')) {
$text=filter_input(INPUT_GET, 'text');
$text=wordwrap($text,40,"\n",true);
}

$img = imagecreatefromjpeg('bill-ovl.jpg');
Expand All @@ -53,4 +54,4 @@
imagettftext($img, 18, 0, 30, 100, $clr,$font_path, $text);
imagejpeg($img);
imagedestroy($img);
?>
?>

0 comments on commit f9a17b9

Please sign in to comment.