I\'m trying to get rgb color info from every pixel using imagecolorat() and I\'m not sure if my syntax to save rgb values into $xy() is correct. I\'m looking at documentation but I\'m still not unders
Does anybody have a function that draws a ttf string (imagettftext) with specified letter spacing? I cannot find any build-in GD f开发者_运维知识库unction so I think that it should be done letter by
I am working on a PHP project using the GD library to output a GIF image directly to the page. I know how to use GD, and I\'ve gotten the image to save to a file correctly, the problem is that my host
In a site I\'m developing I need to be able to pass all my images through imagejpeg(), so I decided (as my site only accepts JPG, BMP + PNG uploads) to simply convert BMPs and PNGs to a JPG first.
I\'m trying to generate a resized image, this is my code: $image = imagecreatefromjpeg($file); $tnImage = imagecreatetruecolor(100, 100);开发者_如何学C
I h开发者_开发问答ave image as binary string. (submitted via POST from C# app as byte array) I can read it using imagecreatefromstring function.
I have an image that contains transparency which I am merging with another image (created in php) along with getting some text added.Currently the transparency DOES seem to work, but it makes the back
I have an image. Somewhere within this image is a rectangular box... Let\'s say it\'s 300px X 100px. It has a red border around it. I would like to be able to crop this image so that only the red box
I have a transparent image and I would like to change it\'s color. In PHP this was done by using ima开发者_C百科gecolorset but I have read through CPAN\'s doc on GD and I am unable to comprehend how t
$tmp_im = imagecreatetruecolor($width, $height); $x = $this->getX(); $y = $this->getY(); $w = floor($resize_height * ($x / $y));