Page 1 of 2
Logo of the website
Posted: Thu May 25, 2006 7:03 pm
by Kaky
I would like to know how to make that immage on the corners of pics like "this immage is hosted at:::::" how does it work because i am sure that they do not put that manualy on every pic...
Posted: Thu May 25, 2006 11:08 pm
by Freedom Fighter
Umm what?
Re: Logo of the website
Posted: Fri May 26, 2006 5:27 am
by Ky
Kaky wrote:I would like to know how to make that immage on the corners of pics like "this immage is hosted at:::::" how does it work because i am sure that they do not put that manualy on every pic...
Iframes, overlays, some scripts can embed watermark logo on the fly...try google
Posted: Mon Jun 05, 2006 5:46 am
by uz
pls make your request more clear
i did not get it
what d u want to do with image?
Posted: Sun Jul 02, 2006 8:07 am
by ohosale
Photoshop???????? :oops:
Posted: Sun Jul 09, 2006 7:20 pm
by reece
php can change an image and i think it can add text so i think a php script
Posted: Sat Aug 05, 2006 10:23 pm
by OnscrenSpider
:shock:
OMG
they use the "php GD library" to rewrite the images dynamically and past their image transparency signs or a simple text
search in google "php Gd library"
have a nice day
greetz
Posted: Mon Aug 07, 2006 9:17 am
by Lixas
i have a script for automatic images watermarking [features: image or text as a watermark in various image places- corners, center and so on...]. I've found it but didnt tested yet. It uses GD library, so i hope were will not be any problems with various hosts. If you realy need that, PM me and i'll search in my huge scripts collection and will send you to your mail

GD Library
Posted: Tue Aug 08, 2006 12:52 pm
by dbg92
You can use this code: I built it using the info at php.net
Code: Select all
<?php
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("images/button1.png");
$orange = ****($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>
header("Content-type: image/png"); this is the mime type of the image. You can change it to image/jpeg, image/gif etc.
$string = $_GET['text']; this is the text that goes on. It uses a $_GET (the index.php
?text=hello kind of thing), but you can change it to what ever text you want to output
$im = imagecreatefrompng("images/button1.png"); this is the path to the image. You can change
imagecreatefrompng to
imagecreate if you aren't using a png. You have to change the uri to a width followed by a height if you do
$orange = ****($im, 220, 210, 60); this is the text colour. you change it using the RGB values (220, 210, 60).
$px = (imagesx($im) - 7.5 * strlen($string)) / 2; This finds the width of the given image, then halves it to centre the text. You can use a pixel value for the text location if you want:
uses 5 pixels
imagestring($im, 3, $px, 9, $string, $orange); this creates the image, using
- $px the number of pixels across horizontally
and outputs the new image to the variable $im
imagepng($im); this outputs the image if it is a png. You could also use
imagejpeg($im);,
imagegif($im);,
imagewbmp($im); etc.
imagedestroy($im); clears the image variable.
Hope that helps
Daniel
Posted: Fri Aug 11, 2006 11:23 pm
by kainengland
php
i need a php tutour any 1
no a link