Skip to content
Advertisement

Tag: image

How to write text with opacity on a picture in PHP?

I’m writing a text on a picture. So far everything is fine, but I have to lower the transparency or opacity value of this text. I tried the following methods for the opacity value, but I couldn’t get any results. Actual result : https://prnt.sc/vy8axf Expected result : https://prnt.sc/vy8cnz Answer You could use imagecolorallocatealpha() to assign alpha channel to $textcolor :

PHP, Image preview with javascript and uploader by PHP

I made PHP script to preview an image before upload it, which is simple and easy to read. the first part is to displays the image then to upload it after pressing Submit button. I have an issue with uploading the image, it doesn’t upload. Answer You have several logical errors in your PHP Code as well as HTML. When

Problem pasting one image into another PHP

I want to paste the $original image into the center of $fondo image, i write the following code: The result i got is this: As you can see the cyan color is affecting original image: Any ideas on what i’m wrong? Thank you! Answer the solution is: Creating the image as imagecreatetruecolor instead of imagecreate Then, need to paint the

Advertisement