Đã hoàn thành

Simple GD task - Text on Transparent image

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

header('Content-type: image/png');

// 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()

imagepng($im);

imagedestroy($im);

?>

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

## Deliverables

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).

## Platform

GD library

Kĩ năng: PHP

Xem nhiều hơn: create your own image, add transparent, Transparent, transparent background, print image, image red, grey background to images, GD, php transparent png, create png image, png library, text png, image library, software image text, text using, simple library, image create png, simple background program, png images 128 128, background transparent

Về Bên Thuê:
( 111 nhận xét ) Brisbane, Australia

ID dự án: #3375239

Được trao cho:

intaglica

See private message.

$7 USD trong 14 ngày
(38 Đánh Giá)
4.5

2 freelancer đang chào giá trung bình $10 cho công việc này

grupociberia

See private message.

$12.75 USD trong 14 ngày
(94 Nhận xét)
6.1