Modify the code below to print the text to a transparent PNG instead of the current black background. Text MUST retain high quality as already acheived in this code.
// Set the content-type
// Create the image
//$im = imagecreatetruecolor(150, 27);
$im = imagecreatefrompng('images/[url removed, login to view]');
// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);
$red = imagecolorallocate($im, 241, 47, 4);
imagefilledrectangle($im, 0, 0, 149, 26, $black);
// The text to draw
$text = $HTTP_GET_VARS['text'];
// Replace path by your own font path
$font = 'fonts/[url removed, login to view]';
// Add some shadow to the text
//imagettftext($im, 14, 0, 5, 21, $grey, $font, $text);
// Add the text
imagettftext($im, 14, 0, 4, 20, $red, $font, $text);
// Using imagepng() results in clearer text compared with imagejpeg()
Will select a bidder in the next hour. Project MUST be finished within a couple of hours of accepting.
In your bid type "clear png" so i can avoid canned responses. Thanks
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Worker in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the worker's Worker Legal Agreement).