Jump to content

[SOLVED] image save help !


d.shankar

Recommended Posts

No dude.. my code is working fine .. i do use imagepng(). see below

 

<?php

$image_path="image.PNG";
$font="arial.ttf";
$string="text over image";

$im    		 = 	imagecreatefrompng($image_path);

$colorwhite  = 	imagecolorallocate($im, 255, 255, 255);



imagettftext($im, 6.5, 0, 11,63, $colorwhite, $font,$string);
imagepng($im);
imagedestroy($im);
?>

 

 

Now i need to save the image in that very same directory automatically !

Manuals are for PHP Experts.

PHPfreaks is fo n00bs like me.

 

So from every post i learn new things everyday.

 

Manuals are for people seeking information... PHP freaks is for people seeking information.

 

Most find their answers from the manual first.

Manuals are for PHP Experts.
That is incorrect. When learning anything, finding out the basics of what you are doing will always help you do that thing easier, better, faster, and safer.

 

Would you attempt mountain climbing without first learning how?

 

Using any function, such as imagepng(), easier, better, faster, and safer, means learning what that function does, what parameters it accepts, and what it returns, that is what a programming language reference manual is for.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.