gd
Getting imagecolorat() data from every pixel from image using php-gd loop
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[详细]
2023-03-26 00:59 分类:问答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 GD f开发者_运维知识库unction so I think that it should be done letter by[详细]
2023-03-25 19:00 分类:问答How can I force only GD output with PHP?
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[详细]
2023-03-25 10:31 分类:问答Converting BMP to JPG in PHP
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.[详细]
2023-03-25 09:22 分类:问答GD-PHP: trying to resize an image
I\'m trying to generate a resized image, this is my code: $image = imagecreatefromjpeg($file); $tnImage = imagecreatetruecolor(100, 100);开发者_如何学C[详细]
2023-03-24 19:28 分类:问答PHP Get Image size when image is stored as byte array
I h开发者_开发问答ave image as binary string. (submitted via POST from C# app as byte array) I can read it using imagecreatefromstring function.[详细]
2023-03-24 08:28 分类:问答Merge images and preserve transparency
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[详细]
2023-03-23 06:24 分类:问答GD Library - Detecting colors and shapes, advice?
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[详细]
2023-03-22 12:05 分类:问答Is there an equivalent to imagecolorset for GD from PHP in Perl?
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[详细]
2023-03-22 03:42 分类:问答PHP GD poor thumb quality
$tmp_im = imagecreatetruecolor($width, $height); $x = $this->getX(); $y = $this->getY(); $w = floor($resize_height * ($x / $y));[详细]
2023-03-21 22:18 分类:问答