Top "Gd" questions

GD Library is used to dynamically create and manipulate image files.

Face detection in PHP

Does anybody know of a good way to do face detection in PHP? I came across some code here that …

php image-processing gd gdlib face-detection
Problem with imagecreatefrompng (PHP)

in one of my PHP projects, imagecreatefrompng complains, that the image "is not a valid PNG file". Warning: imagecreatefrompng() [function.…

php image png gd gdlib
PHP - How to write image resource to file

I used function imagecopyresampled to cropping image. I tried use file_put_contents and fwrite to write the resized_image …

php gd
How to replace black background with white when resizing/converting PNG images with transparent backgrounds to JPEG.

I am using a script that lets users upload images. The script resizes and converts the images to JPEG. The …

php image resize gd
Can I swap colors in image using GD library in PHP?

I got the image like this (it's a graph): (source: kitconet.com) I want to change the colours, so the …

php colors gd swap imagefilter
Using a transparent PNG as a clip mask

Is it possible to take this image: And apply this mask: And turn it into this: Using either GD or …

php gd imagick
Creating an image without storing it as a local file

Here's my situation - I want to create a resized jpeg image from a user uploaded image, and then send …

php image jpeg gd
How to encode an image resource to base64?

I was wondering if there's a way to encode an image to a base64 if it was a resource for …

php image base64 gd encode
Can I display an image created with PHP/GD without saving and without using external PHP with image header?

I'm trying to create a way to show an image created with PHP/GD, in an OOP fashion. In order …

php image gd
php imagettftext letter spacing

Does anybody have a function that draws a ttf string (imagettftext) with specified letter spacing? I cannot find any build-in …

php gd imagettftext