/ Published in: PHP
Let's you render your .nfo Files to PNG Images.
Expand |
Embed | Plain Text
<?php function output_nfo_image ($filename, $size) { $font_file = "C:/WINDOWS/Fonts/cour.ttf"; $width = 0; $box = imagettfbbox($size, 0, $font_file, $nfo_file_lines[$i]); } $background_color = imagecolorallocate($image, 0, 0, 0); $text_color = imagecolorallocate($image, 255, 255, 255); imagettftext($image, $size, 0, 0, $size * ($i + 1), $text_color, $font_file, $nfo_file_lines[$i]); } imagepng($image); imagedestroy($image); } //Calls the function to render "myfile.nfo" in image size "10". output_nfo_image("myfile.nfo", 10); ?>
You need to login to post a comment.
