Hola me gustaria saber si puedo poner una marca de agua en las imagenes que se suben via php . por ejemplo mi logo o simplemente una raya.
Un saludo
| ||||
Mira este artículo sobre GD avanzado: http://www.phpbuilder.com/columns/cash20030526.php3 Ahí hay muchas cosas de ese tipo.
__________________ M a l d i t o F r i k i |
| ||||
Cita: Según la documentación, $pct es el porcentaje de transparencia del texto. imagettftexttransparent(resource im, int size, int angle, int x, int y, int col, string fontfile, string text, int pct) imageTTFTextTransparent will draw transparent text on your image. im is the image you want to edit. size is the text size in points. angle is the angle of the text. x is the left coordinate of the text. y is the top coordinate of the text. fontfile is the font file you wish to use. text is the text you wish to write. pct is the percent that the text is transparent.
__________________ M a l d i t o F r i k i |
| |||
Si no terminas de conseguir lo que quieres con el artículo de phpbuilder, prueba con este que escribí: http://guebmaster.com/articulo.php/102 |
| ||||
Hola ,he cambiado al final porque me interesaba mas que me hiciera la marca con una imagen peor ahora me da el siguiente error: Code: Código PHP: Cita: la linea 62 es la d imagecopyWarning: imagecopy(): supplied argument is not a valid Image resource in /home/lomoon/public_html/Nuevo/Admin/pruebamarcas.php on line 62 Un saludo Ayuda please ![]() Última edición por lochorui; 28/05/2003 a las 11:59 |
| |||
jeje, he estado 15 minutos pensado cual podía ser la causa.... y jeje, en la línea 62 pone $marcadegua cuando debería poner $marcadeagua... Error mio, voy a correjir el artículo... |
| ||||
fijate q en el mio yo ya habia detectado en esa misma errores parecido en : ImageCopy($original, $marcadeagua, $horizmargen, $vertmargen, 0, 0, $anchura_marcadeagua, en tu scriopt pone ImageCopy($original, $marcadeagua, $horizmargin, $vertmargin, 0, 0, $anchura_marcadeagua, cambialo tmb. Un saludo |