gdlib Questions

3

Solved

I want to skew an image into a trapezoidal shape. The left and right edges need to be straight up and down; the top and left edges need to be angular. I have no idea what the best way to do this is...
Infeld asked 30/10, 2009 at 15:6

4

Solved

How can I give border to text using PHP GD library with multicolored text, where the text color is different from the border color. As you can refer:
Erepsin asked 13/11, 2014 at 9:23

1

I have used GD Library to create "Text on Image". I am facing one issue that passing some Gujarati text but getting wrong output as below: I want like this and getting: My code is: $textB...
Brush asked 27/1, 2019 at 7:17

3

If I want to write the following text on the image: दीक्षा शिक्षा क्या क्या हो गया! Then it does not not give the expected result but instead is printing out text on the picture as below. I have ...
Arana asked 17/1, 2014 at 14:20

2

Solved

in one of my PHP projects, imagecreatefrompng complains, that the image "is not a valid PNG file". Warning: imagecreatefrompng() [function.imagecreatefrompng]: '/.../...png' is not a valid PNG fi...
Striker asked 19/2, 2010 at 11:30

6

Solved

How to create an image with GDlib with a transparent background? header('content-type: image/png'); $image = imagecreatetruecolor(900, 350); imagealphablending($image, true); imagesavealpha($ima...
Rosana asked 8/12, 2011 at 21:5

6

Does anybody know of a good way to do face detection in PHP? I came across some code here that claims to do this, but I can't seem to get it to work properly. I'd like to make this work (even thoug...
Drub asked 11/11, 2010 at 22:31

3

Solved

How do these filters affect the output of imagepng() in PHP? PNG_NO_FILTER PNG_FILTER_NONE PNG_FILTER_SUB PNG_FILTER_UP PNG_FILTER_AVG PNG_FILTER_PAETH PNG_ALL_FILTERS The documentation simply ...
Alicea asked 15/6, 2010 at 19:32

2

Solved

My ultimate goal is to run a twiki website for my research group. I have space on RedHat server that is running Apache, etc., but upon which I do not have root access. Since I cannot install perl m...
Unfriended asked 13/5, 2012 at 13:12

2

Solved

I am taking a PNG image from a url as below. I want to convert the PNG image to JPEG without saving disk with PHP. Finally I want to assign JPEG image to $content_jpg variable. $url = 'http://...
Diapositive asked 14/1, 2014 at 3:51

1

Solved

I need to create a grayscale image in PHP. I am not talking about an indexed image with grayscale values in its palette, but about a TRUE grayscale image. The difference is in the 26th byte of the ...
Cystocarp asked 17/9, 2012 at 14:24

1

Solved

I've googled as much as I can, but I've only found a PHP class that calls upon Inkscape to render the SVG, so I ask here: I have a valid SVG file generated in some way (or uploaded by a clie...
Alix asked 23/4, 2012 at 23:27

2

Solved

I want to write a routine which takes PNG image path as parameter and convert that image into 8-bit PNG image. I need to use PHP GD library for this.
Erose asked 22/4, 2011 at 5:25

1

Solved

I have sent a base64 encoded string via AJAX to PHP and created an image resource with imagecreatefromstring - all is fine. Now I want to get the base64 encoded string after resizing te image, but...
Uwton asked 14/12, 2011 at 10:1

5

Calling all PHP gurus! I understand that you can use getimagesize() to get the actual pixel height and width of an image in PHP. However, if you open an image in photoshop and look at the image si...
Vestiary asked 4/11, 2008 at 15:10

3

Solved

I need to create a PNG radial gradient with opacity. I've looked through GDLib but I can't see a way to generate radial gradients. Does anyone know of a way with GDlib or any other graphics library...
Disgorge asked 7/7, 2011 at 18:51

1

I'm using a script that I downloaded from google code to dynamically generate mosaic images with the GD library. The script seems a bit convoluted. I've messed around with it quite a bit, but I'm s...
Anuska asked 6/7, 2011 at 20:10

1

Solved

I have two PNG files, "red.png" and "blue.png"; they are both mostly transparent, but there is a few pixels of red or blue splotches in various places. I want to make a PHP script that merges the ...
Files asked 28/7, 2010 at 18:9

2

Solved

I am working on a website in which the client wishes to have users upload background images to a printable design, crop to size, add text. Do this to multiple pages then generate a pdf of the 'book...
Deckle asked 23/2, 2010 at 19:41

4

Solved

How do you detect the location of an image within a larger image? I have an unmodified copy of the image. This image is then changed to an arbitrary resolution and placed randomly within a much lar...
Cooee asked 14/2, 2010 at 21:21
1

© 2022 - 2024 — McMap. All rights reserved.