diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2010-05-10 18:15:05 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2010-05-10 18:15:05 +0200 |
commit | a35b8619d63c01295f9cddc552c1502736a5bfdd (patch) | |
tree | c2c72553718c536288c26577d4fa9d2c130fede1 | |
parent | 3e67fae9884a340cf1b3075da6df49d1aec58365 (diff) |
styles generator updates
-rw-r--r-- | Styles-generator.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Styles-generator.php b/Styles-generator.php index 5ef71b7..39bafef 100644 --- a/Styles-generator.php +++ b/Styles-generator.php @@ -1,8 +1,8 @@ <? -include("Config.php"); +include("Config.BigLine.php"); -define(WIDTH, 150); +define(WIDTH, 100); define(HEIGHT, 50); foreach ($Styles as $style => $font) @@ -15,10 +15,8 @@ foreach ($Styles as $style => $font) $black=imagecolorallocatealpha($img, 0, 0, 0, 0); imagefilledrectangle($img, 0, 0, WIDTH, HEIGHT, $transparent); - - imagettftext($img, 15, 0, 0, HEIGHT * 80/100 , $black, "import/".$font, $style); - - imagepng($img, "./$style.png"); + imagettftext($img, 30, 3, 0, HEIGHT * 80/100 , $black, "import/".$font, $style); + imagepng($img, "styles/$style.png"); } ?> |