Questions tagged as 'gd'

1
answer

Mount an image from other images with PHP

Hello; I wonder if I can mount an image from other images sequentially. For example: Let's say that I have a word and image register defined for each letter of the alphabet. When registering a word, Bee for example, I want to create an ima...
asked by 29.08.2016 / 18:58
1
answer

How to make an image with php

I would like instead of the black background for an image, how? I would like to do this: <?phpheader("Content-type:image/gif"); $img = imagecreate(470,246); $azul = imagecolorallocate($img,0,0,0); $branco = imagecolorallocate($img,255,255,25...
asked by 01.04.2018 / 20:19
2
answers

How to merge images and text with PHP

Good afternoon. I'm trying to automate a process of creating badges for an event. I want you to fill out the information on the form (name, company, e-mail and photo), fill in the gaps in the image and make it as a single JPEG image. B...
asked by 21.11.2016 / 19:51
2
answers

Image appears "broken" after you changed the PHP version [closed]

I currently changed a machine application, so the bar code image no longer appears. The PHP version of this new machine is newer, I've tried changing the image call but nothing happens. How could I resolve? <?php echo "<IMG src=...
asked by 02.07.2015 / 20:25
0
answers

Align text within imagettfbbox () - GD

I'm using the PHP GD library to "print" text in images. When the text is greater than 150 characters (more or less), it ends up leaving the image border, I was able to solve this problem with "wordwrap ()". But this creates another problem, the...
asked by 04.12.2018 / 18:37
0
answers

Write about image with PHP

I need a form, the user can write their data, to be printed in a predefined image (it will be an email signature) Follow the code used, but the image does not appear! HTML <form method="get" action="criaImg.php"> <label&...
asked by 15.02.2018 / 18:41
1
answer

Generate transparent image through a form

Hello. I want to create a form with one field of type input and the other as submit. When typing something in the input field and clicking the submit button an image will be generated through the PHP GD library. But the problem is, I do no...
asked by 26.07.2017 / 05:37
1
answer

GD / PHP Add text by form / Transparent Background

<?php $image = imagecreatetruecolor(100, 100); //Fundo Transparente imagealphablending($image, false); $transparency = imagecolorallocatealpha($image, 0, 0, 0, 127); imagefill($image, 0, 0, $transparency); imagesavealp...
asked by 01.08.2017 / 05:57
1
answer

Error when showing image with GD

I'm trying to display a PNG image on the client browser screen using PHP, but only a black screen with a comic in the center appears. What am I doing wrong? Here is my code: <?php $file = "img.png"; $width = 500;...
asked by 27.01.2017 / 08:16