php-groups.com | Post Question | Search | About | Groups | Contact | Register | Login



php notes (593)

php bugs (293)

php cvs (289)

php doc cvs (213)

php qa reports (199)

php doc fr (184)

php doc de (159)

php doc bg (157)

php webmaster (152)

php general (150)


php.gd.devel Post New
Items(40)
Subject Posted Replies From
gd examples

Hi, I am new to gd and I've just built gd-2.0.35 on a linux box. Are there any C or C++ examples to create images from gd? Thank you. Kind regards, Jupiter

1/4/2010 11:14:23 AM 0 webmail....@gmail.com (hce)
Anti aliased lines not working for palette based images

--000e0cd22950bd2b73047a344b4c Content-Type: text/plain; charset=ISO-8859-1 Hi, I am not able to draw the anti aliased lines for palette based images. I followed the exact example given at this link: http://www.libgd.org/Drawing#void_gdImageSetAntiAliased.28gdImagePtr_im.2C_int_c.29_.28FUNCTION.29 History of the problem I am facing: Our site is serving palette based images (without anti aliasing) from long time. We wanted to introduce true type fonts, I switched to true type image. Also made the lines anti aliased. It increased the size of the image from 2KB to 8KB. If I use th

12/8/2009 9:35:34 AM 0 prashant2...@gmail.com (Prashant Sharma)
Feature Request

--001485f92214a70d1404797033ae Content-Type: text/plain; charset=ISO-8859-1 Hello all I know that there must be many things to work on GD but I would like to propose that GD could handle some form of metadata on GIF and PNG files. This request could be more oriented to exif library than on GD but since GD has iptc functions I thought maybe GD could have some form of doing the same for GIF and PNG, for example. I don't know any legal issues regarding GIF and PNG, but I think this could be great for PHP developers, since some web gallery systems provide a database to keep image m

11/28/2009 3:38:36 PM 4 jarod...@gmail.com (Pedro Heliodoro)
64-bit windows libraries ...

... Are there precompiled ones out there someplace? Has anyone managed to compile 64-bit windows from the source? Thanks Disclaimer: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and retur

10/23/2009 2:59:37 PM 0 ...@dotmatics.com (Gary Hanyzewski)
screenshot of a web site

--0016367f92e1e307ee04769abd2b Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm wondering if GD can make a screenshot of a web site? I meen, is there a command for GD that takes as input an URL and then outputs the image (screanshot) of that URL. Thank you --0016367f92e1e307ee04769abd2b--

10/23/2009 2:08:09 PM 0 reseas...@gmail.com (resea soul)
windows 64 bit build problems

Hi, I'm building a C application which uses gd. I downloaded and am using the latest windows binaries from libgd.org (2.0.34 according to gd.h). When I compile my application using the msvc 32-bit compiler everything works fine (setenv /x86). When I compile the exact same code using the 64-bit compiler and libraries (setenv /x64) I get 14 unresolved externals fro gd. I've listed them below. So what's the trick? Is there a known problem with using gd in 64-bit c applications with msvc (cl/link)? Thanks for any pointers / help. To reiterate this application builds fine using the 32

10/16/2009 4:43:32 PM 0 ...@dotmatics.com (Gary Hanyzewski)
Help with drawing lines

--001636e1f3b141f1760475e4934b Content-Type: multipart/alternative; boundary=001636e1f3b141f16a0475e49349 --001636e1f3b141f16a0475e49349 Content-Type: text/plain; charset=ISO-8859-1 Hi, I need to draw a various types of lines, and I have a problem with drawing dashed lines with width greater then 1 pixel. Here is my code: #include "gd.h" #include <stdio.h> int main() { gdImagePtr im; int styleDotted[2], styleDashed[6]; FILE * jpegout; int black; int red; im = gdImageCreate(100, 100); black = gdImageColorAllocate(im, 0, 0, 0); red = gdImageColorAllocate(im, 255,

10/14/2009 12:48:10 PM 0 sasko2...@gmail.com (Aleksandar Nedeljkovic)
bgd.dll / imagegrabwindow

Hi! Excellent work for GD and the bgd.dll for win32. Proposal: can you please add also the imagegrabwindow API ? In many cases the image is already created on a window. I wish to use bgd.dll only to save the image to file, and the PHP / GD imagegrabwindow is fantastic : resource imagegrabwindow ( int $window [, int $client_area = 0 ] ) Grabs a window or its client area using a windows handle (HWND property in COM instance) I don't know if this function is really a GD or a PHP child... but I think it is very useful, and doing it in Visual Basic 6 is a pain. My prop

10/5/2009 10:33:37 PM 0 massimo.sala....@gmail.com (Massimo Sala)
bgd.dll / get GD version

Hi! Excellent work for GD and the bgd.dll for win32. Proposal: can you please make a gd_version to retrieve the library version ? Visual Basic 6 example Declare Sub gdVersion Lib "bgd.dll" Alias "_gdVersion@0" () As Long return a numeric value VER_MAJOR * 65536 + VER_MIDDLE * 256 + VER_MINOR example 2.0.34, gdVersion() = 65536 * 2 + 34 ciao, Massimo @ITALY

10/5/2009 10:27:41 PM 0 massimo.sala....@gmail.com (Massimo Sala)
Help me using bgd.lib in borland c++ builder

Please help me i have problem bgd.lib can not use in borland. I had to try using coff2omf but not success. I don't know what to do. Please help me.. -- polutan :D

9/19/2009 8:31:36 PM 0 linspir...@gmail.com (polutan)
using a path for clipping images

Hello list! I'm looking for a way of clipping an image (or partially drawing an image) using a path. I found gdImageSetClip() doing this jobs for a rectangle. Do you have an idea how to use a path? Thank you! Martin

9/2/2009 9:05:26 AM 0 M.Kof...@gmx.net ("Martin Kofahl")
Font fill colour issue for palette image

Hi Could anyone tell me how the fill colour for text drawn with gdImageStringFT is determined please ? Basically I am creating a gif image, filling the image with yellow and drawing black text with gdImageStringFT. The problem is that the interior of the letters drawn appear to be white whilst the outline of the letters are black. My thanks in advance. Penny

8/19/2009 8:46:47 AM 0 pen...@btex.co.uk (Penny Bamborough)
Ugly White column of pixels in thimbnails anyone?

--000feaf10fcce188550471763d8e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Does anyone besides me get ugly white pixels when thumbnails are created? I wanna fix this! --000feaf10fcce188550471763d8e--

8/19/2009 3:29:05 AM 0 ...@bettafootwear.com (Joe Pea)
Font Effects (Oblique, 'Bold', etc)

Hello all, If I remember correctly, GD simply passes through most (if not all) of its text handling to FreeType. I also know that FreeType can't magically italicize text, but can slant (oblique) it. Does GD have any interface to tell FreeType to perform this operation (imageFTtext ?) Similarly, are there any good practices to make text bold when you don't actually have a Bold TTF (printing text twice, etc)? Thanks for any insight you can provide. :) -Jason

8/16/2009 4:12:29 PM 0 ...@morgontech.com (Jason Young)
Problems copying PNG with Alpha-Transparency

Hello, I've tested today copying a PNG-File with Alpha-Transparency to an image (new, empty) with libgd. The result doesn't look beautiful... some parts of the half-transparent areas are missing, and the background in the target-Image looks like chessboard. I've used gdImageCopy and gdImageCopyResampled but the results are the same. Is copying of PNGs with Alpha-Transparency currently not implemented or do I have to use another function for that purpose? The image I've tested with is here: <http://de.wikipedia.org/w/index.php?title=Datei:PNG_transparency_demonstration_1.png&fileti

7/14/2009 3:11:54 PM 0 mailing-...@bup-nbg.de (Dieter Guthmann)
How to get rid of white ugly pixels on thumbnails.

--0015175cddd60a5666046e9e1cf2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hey, does anyone know how to change the color of, or delete, the row/column that is being outtputted when I make a thumbnail? I'm Using PrestaShop e-ciommerce software that automatically generates thumbnails of all my product photos. But I get either a row or a column (depending on the dimension of the thumbnail) of white pixels that are leftover either on the bottom of the thumbnail, or on the right side of the thumbnail, respectively. My website is mostly dark colored,

7/13/2009 10:47:21 PM 0 ...@bettafootwear.com (Joe Pea)
PDF or PS support

--=_alternative 00718538862575EE_= Content-Type: text/plain; charset="US-ASCII" Hello, Is there any way to dump PDF or PS from GD? The images I create have a lot of detail and I would like the ability to zoom in/out with a non-bitmap format (currently we mostly use PNG). I could not find any APIs to do this in the existing documentation. Thanks, Mike --=_alternative 00718538862575EE_=--

7/9/2009 8:39:56 PM 0 mdamu...@us.ibm.com (Michael D Amundson)
Help GD

------=_NextPart_000_0003_01C9FFF7.88C819F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello to all ...=20 are now days that I think about how to do it, now you explain what=20 I would basically call a img, below this picture to put a white stripe = which says "hosted by". so if the img is large 400 * 400 should become = 400 * 450 so that those in 50px + can enter text=20 PHP Code:=20 <? php=20 $ im =3D imagecreatetruecolor (400, 200);=20 $ middle =3D ceil ((400 - 200) / 2);=20 $ image =3D imagecreatefromjpeg ( "tesserino.

7/8/2009 4:11:37 PM 0 mir...@email.it ("Massimo di Blasio")
problem building GD 2.0.34 [SEC=UNCLASSIFIED]

--_000_31206604F52B7640ACE37E6AD3C6937459B9C47170EXCCR01agsogo_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I am trying to build GD for Solaris 10/Sparc. I am running into trouble wit= h the setup of automake/autoconf/libtool or something. Below is the output = of the ./configure summary and what happens when I type make. I also showed= evidence of the GNU build tools I have installed. Thanks for any assistance! ---------------------------------------------------------------------------= ----------------------------------------

6/24/2009 6:51:05 AM 0 Michael.Pot...@ga.gov.au
gd not linking

--0-592177733-1245649715=:15634 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hallo I am trying to compile the gd example from the index.htm file but my = compiler is not linking with the library. I am using dev-c++ under windows = linking to the bgd.lib file for the DLL. I keep getting a build error. =A0 christopher Pade=0A=0A=0A --0-592177733-1245649715=:15634--

6/22/2009 5:48:35 AM 0 c198...@yahoo.com (Christopher Pade)
Warning: imagecopyresampled(): supplied argument is not a valid Image resource

--000e0cd247d4240377046ca3e481 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit php code: $blank = imagecreatefromjpeg('blank.jpg'); ...... $pos_x = 0; $pos_y = 0; $pos_step = 10; while ($get_images_i <= $get_images_n) { $ach_ico = imagecreatefromjpeg($get_images_links[1][$get_images_i]); imagecopyresampled($blank,$ach_ico,$pos_x,$pos_y,0,0,10,10,64,64); $pos_x = $pos_x + $pos_step; ImageDestroy($ach_ico); $get_images_i++; } ...... header("Content-type: image/png"); imagepng($blank); Problem: Warning: imageco

6/18/2009 6:51:08 PM 0 ad...@dersizes.ru (=?KOI8-R?B?78zF1svP1SBEZXJTaXplUw==?=)
Problems converting AVFrame to gdImagePtr

Hi, I am trying to extract single frame from a MP2-File. The frames are extracted and saved as AVFrame. For further processing I want to convert the AVFrame to an gdImagePtr. The conversion should be done by this code: ------------------------------------------------------------------------- void SaveFrame_png(AVFrame *pFrame, int width, int height, int iFrame) { FILE *pFile; char szFilename[32]; int x,y; gdImagePtr im; int *src; im=gdImageCreateTrueColor(width, height); //gdImageInterlace(im, 1); src = (int *) pFrame->data[0]; for(y=0; y < height; y++

5/30/2009 2:44:10 PM 0 udo.pokoj...@t-online.de (Udo Pokojski)
loop in gdImageCreateFromPng

This (presumably invalid) PNG causes gdImageCreateFromPng() to loop:=20= http://jessen.ch/files/png-that-causes-loop-in-libgd.png It was extracted from an email, possibly incorrectly, but surely it shouldn't cause a loop, regardless of how poor the contents are? I'm using 2.0.35. /Per Jessen, Z=C3=BCrich

5/8/2009 8:16:57 AM 0 ...@computer.org (Per Jessen)
Load Image Posterizing

--00151750e63c22cb5904694d653b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello. I am using GD 2.0.34 with Perl and am running into a snag. Firstly, I hope this is the right forum for Perl questions. I believe my problem is with GD not Perl, but if this isn't the right venue, I'd appreciate being redirected. I'm trying to load an image and access the pixel data. However, I'm noticing that GD seems to be posterizing the image when I load it, so I'm not getting all the colors. I suspect I'm doing something wrong. Attached is a perl script tha

5/7/2009 7:23:56 AM 0 alexdo...@gmail.com (Alex Dodge)
gdlib-config --libs no longer includes -lgd in 2.0.36RC1, did in 2.0.35

gdlib-config's output actually looks a lot better in 2.0.36, but one difference is that it no longer includes a reference to the gd library (-lgd) itself. Is this the desired behavior and if so, why? On our machines, FreeBSD, in 2.0.35 gdlib-config -all returns: GD library 2.0.35 includedir: /usr/local/include cflags: -I/usr/local/include ldflags: -L/usr/local/lib -L/usr/local/lib libs: -lgd libdir: /usr/local/lib features: GD_JPEG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON On 2.0.36RC1 it returns: GD library 2.0.36 includedir: /usr/local

4/27/2009 9:05:55 PM 0 karllehenba...@gmail.com (Karl Lehenbauer)
2.0.36 release?

I notice that RC1 of 2.0.36 was released in November 2007. I'm wondering if there are any plans to move this forward to being a release? Some organisations won't install a version until it has been called a release, and there are many improvements since 2.0.35 that are worth making more generally available. Any comments welcome. -- Russell McOrmond, Internet Consultant: <http://www.flora.ca/> Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://www.digital-copyright.ca/petition/ict/

4/19/2009 5:38:57 PM 0 russ...@flora.ca (Russell McOrmond)
how to find

i was wondering if i could some how find the error settings like when you do include("text.txt"); and its not there it pops up with warning: main(text.txt): cant be found or something like that, is there a way that i can find the place that has the text for that so lets say i could put instead of warning its hazard or something like that? i just need to find the file that tells you where the error is at and stuff what im trying to do is i host a website with a company but i also host my website from home, i have had a hard time keeping my internet up for some reason the modem

4/10/2009 11:09:52 PM 0 ...@mikemrm.com ("...@mikemrm.com")
How to...

------=_NextPart_000_000A_01C9AF35.CCC77140 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello im new to GD and ive started my own php apache server on windows = and want to do dynamic images but cant seem to get it. ive enabled = php_gd2.dll or whatever in the php.ini file and everything but when i = put <?php echo "<xmp> "; print_r( gd_info() ); echo "</xmp> "; ?> it doesnt show anything. now i have a 1and1 website www.mikemrm.com and when i put that in it = comes up with a hole bunch of stuff. when i do the php info it has

3/28/2009 4:43:16 AM 0 ...@mikemrm.com ("Mike__MRM")
gd-png error: setjmp returns error condition 2

I'm using ImageCreateFromPngPtr() on data that is apparently incomplete= , i.e. not a valid PNG, and I'm getting the error as in the subject.=20 My own code handles the problem on my end, but after a couple of more times with the same problem (in the same process), I get a segfault.=20= I'm running on ia32, I'm using libgd 2.0.35 and the latest libpng. I have not yet totally isolated and reproduced the problem, but I'm working on it - does anyone have any pointers in the meantime? thanks /Per Jessen, Z=C3=BCrich

3/26/2009 5:41:43 PM 0 ...@computer.org (Per Jessen)
Syntax help

------=_NextPart_000_00DC_01C9A257.3323F9E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi All. What is the correct syntax in windows for extension_dir = In my case the path is c:\php\ext Im just wondering if my syntax is correct extension_dir = "c:\php\ext" Or should it be extension_dir = c:\php\ext Or maybe extension_dir = "c:/php/ext" Im asking cause Ive seen them all used when goggling a problem im having with My php_gd2.dll ------=_NextPart_000_00DC_01C9A257.3323F9E0--

3/11/2009 12:39:30 PM 0 bren...@amgsa.co.za ("Brennan Fritz")
Text rotation bug?

In tracking down a reported problem with rotated text in gnuplot's png terminal, I found what appears to be a bug, or at least a limitation in libgd. Rotation angles outside the range -pi < angle < pi are slightly wrong or possibly just overly sensitive to the precision of the angle provided. In particular, rotation of +90 degrees (1.570796 radians) is fine But rotation of -270 degress (-4.712389 radians) is ever so slightly off. The rotation values were provided to greater precision than shown above. According to the original reporter, the problem is visible with libgd 2.

2/24/2009 9:28:04 PM 0 merr...@u.washington.edu (Ethan Merritt)
Can't create account on the gd library wiki

--0016364c673ff00eb304638b7cba Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Folks, I've tried a few times over the last several months to create an account on the gd library wiki at http://www.libgd.org/ and it won't let me because it requires one to be logged in to create an account. Is this the desired behavior? If not, please fix. If so, what do I need to do to get an account? I am the author of the tcl.gd Tcl-GD bridge which can be found at http://code.google.com/p/flightaware-tcltools/ Karl --0016364c673ff00eb304638b7cba--

2/23/2009 12:57:34 AM 0 karllehenba...@gmail.com (Karl Lehenbauer)
Download GD

--_d95ca76f-b817-46b3-83cb-0b64479619da_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello my name is mike and im trying to do dynamic text on a local php web s= erver i have. I know the php works but when i try to find the gd bundle i = cant get it=2C i know 1and1.com which is who i host my website with has it = but i just cant seem to get the bundle therefore i cant view the pic. All i have is just GD which came with the php download but not the bundle= --_d95ca76f-b817-46b3-83cb-0b64479619da_--

2/20/2009 12:00:19 AM 0 mmason017...@hotmail.com (michael mason)
Have a Question and add to Subscription List

------_=_NextPart_001_01C99049.7CFEE3FE Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable We are planning to use Nagios for monitoring. One of its' requirements, for using the included CGIs, is to use Thomas Boutell's gd library version 1.6.3 or higher. This is required by the statusmap and trends CGIs. I have found a version 2.0.33 that can be downloaded. I really need to speak with someone or have some email communications to understand what we need. =20 Thanks, Helene Brown System Engineer Harris Corporation 321-984-6179 phone 8

2/16/2009 3:16:06 PM 0 hbr...@harris.com ("Brown, Helene")
priority development

------_=_NextPart_001_01C988B0.C28381F2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable For the past few releases of the GD library, method to read exif = information in jpeg,tiff images have been included in the library, but = no way to write exif directly to image files. Can you please look into = adding a exif_write function to the php library file for the next = release of the GD library? Other libraries such as the imagemagick = allow for this function, but has conflicts with the GD library when both = are installed in the same g

2/6/2009 11:15:11 PM 0 ...@luthiersociety.com ("Max Webb")
Keeping background transparency when converting to GIF

Hello, I'm having a tough time keeping transparency intact when using imagegif() on a transparent image. The image is definitely transparent, as evidenced when using the PNG format .. but once I imagegif() it, the background takes on my transparent color, minus the transparency. Is there something different I could do to make this work as desired? Thanks! -Jason Young Brief example: <?php $font = 'verdana.ttf'; $im = imagecreatetruecolor(100, 50); imagesavealpha($im, true); $trans = imagecolorallocatealpha($im, 20, 50, 50, 127); // To demonstrate non-transpar

1/26/2009 2:45:48 AM 0 ...@morgontech.com (Jason Young)
Extracting frames from GIF

------=_NextPart_000_0047_01C97A30.5AD6B850 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, Is there a way to extract the frames from an existing GIF image ? My ultimate goal is to write a string to a frame of an existing GIF. Best Regards=20 Mahesh Karanth ------=_NextPart_000_0047_01C97A30.5AD6B850--

1/19/2009 6:50:45 AM 0 mahesh.kara...@gmail.com ("mahesh karanth")
imagestring() with .gdf file on Solaris 10

We can't get the imagestring() function to work with non-built-in fonts. It works fine with built-in fonts (1-5). We have tried a number of .gdf files unsuccessfully. We know the .gdf files are loading successfully because we can use GD functions to report their width and height correctly. We are running fully patched Solaris 10 and PHP-5.2.6. We have run tests both against PHP using the bundled GD library and also against PHP linked against a separately built GD 2.0.35 library. The following script fails: $font = imageloadfont('anonymous.gdf'); $fontWidth = imagefontwidth($

1/16/2009 9:22:22 PM 0 ln...@mail.nih.gov (Leif Neve)
Rendering Transparent Text?

------=_Part_35205_23619880.1229744104714 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello everybody, I've been scouring Google and I have yet to find anybody who's answered the question if you can render transparent text with GD. Think of creating a PNG "stencil" if you will. Take an image that's all black, and then "cut out" some text on it by rendering some transparent text. I've been trying all sorts of combinations with imagecolortransparent() to no avail. Any insight if I'm chasing a pipe-dream would be greatly

12/20/2008 3:35:04 AM 0 sgr...@sgreth.com (SGreth)
Problem using gdImageGetPixel()

Hi, I was just making a code conversion (C) from gd to gd2 in my project and got to the problem that gdImageGetPixel() does not return any reasonable values. With libgd-1.8.4 everything is fine but neither 2.0.34 (within ubuntu 7.10) nor 2.0.35 (compiled natively) will do the job. I tried the example code from the web-page, which also does not work: ----------- snipp ------------ #include <stdio.h> #include <gd.h> int main() { FILE *in; gdImagePtr im; int c; in = fopen("pic1.jpg", "rb"); im = gdImageCreateFromJpeg(in); fclose(in); c = gdI

12/18/2008 9:41:29 AM 0 y...@gmx.net (Yorn)

Pages:









Newest Articles

#50656 [NEW]: Assign constant to var causes syntax error
1/4/2010 3:07:07 PM

#50655 [NEW]: fgets(): French translation error
1/4/2010 2:40:48 PM

note 95459 added to domnode.haschildnodes
1/4/2010 1:53:44 PM

note 95458 added to function.readdir
1/4/2010 1:36:41 PM

Hola
1/4/2010 1:29:49 PM