Re: [PHP] imagecreate inside an object

2010-08-19 Thread Ashley Sheridan
On Fri, 2010-08-20 at 00:44 +0200, Lorenzo Marussi wrote: > hello list, > > I'm trying to manage a image resouce inside a method, but > unsuccessfully... > > In detail, that's some code snippets: > > the class and the method: > > class.php > > class canvas{ > > function makeImage($imageW

[PHP] imagecreate inside an object

2010-08-19 Thread Lorenzo Marussi
hello list, I'm trying to manage a image resouce inside a method, but unsuccessfully... In detail, that's some code snippets: the class and the method: class.php class canvas{ function makeImage($imageWidth = 850){ $im = imagecreate(110, 20) or die("Cannot Initialize new GD image

Re: [PHP] imagecreate() question

2007-04-02 Thread Edward Vermillion
Did you try making it transparent first, before adding the circle? Only a question because I'm not sure if it will make a difference. I know I had problems trying to get the alpha blending to actually look decent in png's (ended up looking like a very poor gif with a non- antialiased mask)

Re: [PHP] imagecreate() question

2007-04-02 Thread tedd
At 4:27 PM +0100 4/2/07, Richard Davey wrote: tedd wrote: In the php manual it says: imagecreate() returns an image identifier representing a blank image of specified size. We recommend the use of imagecreatetruecolor(). Q: Why the recommendation? Because the need to create 256 colour (or

Re: [PHP] imagecreate() question

2007-04-02 Thread Richard Davey
tedd wrote: In the php manual it says: imagecreate() returns an image identifier representing a blank image of specified size. We recommend the use of imagecreatetruecolor(). Q: Why the recommendation? Because the need to create 256 colour (or less) images grows less year by year. If you

[PHP] imagecreate() question

2007-04-02 Thread tedd
Hi gang: A couple of image questions: In the php manual it says: imagecreate() returns an image identifier representing a blank image of specified size. We recommend the use of imagecreatetruecolor(). Q: Why the recommendation? imagecreate() returns a "blank" page whereas imagecreatetruecol

Re: [PHP] imagecreate

2006-02-08 Thread Richard Davey
On 8 Feb 2006, at 14:20, Ross wrote: I am trying to replace the images in a page with this code This is fine here... http://www.ecurry.net/example1.php http://www.ecurry.net/example2.php but when I try and embed in inside a html page I get a garbled mess http://www.ecurry.net/menu6.php ht

[PHP] imagecreate

2006-02-08 Thread Ross
Hi, I am trying to replace the images in a page with this code This is fine here... http://www.ecurry.net/example1.php http://www.ecurry.net/example2.php but when I try and embed in inside a html page I get a garbled mess http://www.ecurry.net/menu6.php http://www.ecurry.net/menu6.phps I

RE: [PHP] imagecreate undefined...?

2004-02-13 Thread Vail, Warren
sure all the names above are correct and you can eliminate a lot of stuff for Win/Linux installations if you are not targeting both versions. Warren Vail -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 8:07 AM To: Eric Cc: [EMAIL PROTECTED]

Re: [PHP] imagecreate undefined...?

2004-02-13 Thread Brian V Bonini
On Fri, 2004-02-13 at 11:00, Eric wrote: > However, when I run it, I get an error: > > Fatal error: Call to undefined function: imagecreate() in [file name] on line 3 Sound like your version was complied without GD support. http://www.php.net/manual/en/ref.image.php -- BrianGnuPG -> Key

Re: [PHP] imagecreate undefined...?

2004-02-13 Thread Richard Davey
Hello Eric, Friday, February 13, 2004, 4:00:02 PM, you wrote: E> Fatal error: Call to undefined function: imagecreate() in [file name] on line 3 E> I am running under MacOSX 10.3.2 and PHP 4.3.2. Sounds very much like you have PHP without the image library compiled into it. I don't know where to

[PHP] imagecreate undefined...?

2004-02-13 Thread Eric
I've got this fairly simply script: // white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // write the string at the top left imagestring($im, 5, 0, 0, "Hello world!", $textcolor); // output the image header(

Re: [PHP] ImageCreate / ImageCopyResized Path?

2003-10-09 Thread Jason Wong
You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a "References:" header that tells all recipients which posting(s) your posting refers

[PHP] ImageCreate / ImageCopyResized Path?

2003-10-09 Thread [-^-!-%-
Hello everyone! Is it possible to define a path for ImageCreate and/or ImageCopyResize ? I have an image gallery script that uploads images to the server. I would like to automatically create thumbnails of the image [as soon as it is uploaded and saved in a sub-directory. Is this possible with Im

Re: [PHP] imagecreate() error

2003-07-17 Thread Michelle Bernard
YAY Got it working somewhat, now the so called image comes out garbled on the browser!! BUT getting close! "Michelle Bernard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > no errors have come up yet, still getting the same problem too, I am pulling > out my hair :) everything els

Re: [PHP] imagecreate() error

2003-07-16 Thread Michelle Bernard
no errors have come up yet, still getting the same problem too, I am pulling out my hair :) everything else works nice and smoothly just this whole gd thing... "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do you get any error at apache start up or in error logs?

Re: [PHP] imagecreate() error

2003-07-14 Thread Marek Kilimajer
Do you get any error at apache start up or in error logs? Michelle Bernard wrote: Hi Philip, Thanks for your response, I tried those steps, still no go, getting that same error -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagecreate() error

2003-07-12 Thread Michelle Bernard
Hi Philip, Thanks for your response, I tried those steps, still no go, getting that same error "Philip Olson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Michelle- > > a) Only enable one GD dll, so use php_gd2.dll. > b) Consider using imagecreatetruecolor() instead bu

Re: [PHP] imagecreate() error

2003-07-12 Thread Philip Olson
Hello Michelle- a) Only enable one GD dll, so use php_gd2.dll. b) Consider using imagecreatetruecolor() instead but either will work. c) When asking support questions, it's important to say exactly what version, although in this case we know it's 4.3.0-1 as php_gd.dll was removed in PH

[PHP] imagecreate() error

2003-07-12 Thread Michelle Bernard
Hi there, I am running PHP 4.3 something or other, I have enabled php_gd.dll and php_gd2.dll, pointed the extension directory to the right place, looked at the phpinfo and it has the correct information about the gd's being enabled, I have tried reintalling apache and php...but still get errors on

Re: [PHP] imagecreate()

2003-02-27 Thread Marek Kilimajer
Tell us what is in the logs, they are in logs\ in the apache installation directory Anthony Ritter wrote: Chris, The function I'm trying to get...it's: imagecreate() I am using MS Win 98 / PHP 4 and Apache. I tried running the following script but got an undefined call to imagecreate() The fol

Re: [PHP] imagecreate()

2003-02-26 Thread Anthony Ritter
Chris, The function I'm trying to get...it's: imagecreate() I am using MS Win 98 / PHP 4 and Apache. I tried running the following script but got an undefined call to imagecreate() The following copy is located in my php.ini file...one of which is: .. ;extension=php_gd.dll ...

Re: [PHP] imagecreate()

2003-02-26 Thread Chris Shiflett
--- Anthony Ritter <[EMAIL PROTECTED]> wrote: > Fine Chris. > > Maybe you'd be kind enough to explain how I can get that function to work. This is an example of what I am talking about. I would love to help, but you are leaving out way too much information. What function? Why do you think it does

Re: [PHP] imagecreate()

2003-02-26 Thread Anthony Ritter
Fine Chris. Maybe you'd be kind enough to explain how I can get that function to work. I've uncommented the line in the php.ini file. In "Mastering PHP" (Sybex) on page 559 - Chapter 18, the authors of the textbook - Allen and Hornberger - say when using Win to: ... "uncommen

Re: [PHP] imagecreate()

2003-02-26 Thread Chris Shiflett
--- Anthony Ritter <[EMAIL PROTECTED]> wrote: > Yes Adam. > Any ideas? > > TR Please write emails that make sense if you are going to send them to the entire list. I have noticed a few of these "me too" type of emails today. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] imagecreate()

2003-02-26 Thread Anthony Ritter
Yes Adam. Any ideas? TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagecreate()

2003-02-26 Thread Adam Voigt
Did you restart? On Wed, 2003-02-26 at 12:41, Anthony Ritter wrote: On MS Win 98 / Apache / PHP 4 If somebody out there using Win can check my php.ini file and advise me what I'm doing wrong. I have uncommented: ..

[PHP] imagecreate()

2003-02-26 Thread Anthony Ritter
On MS Win 98 / Apache / PHP 4 If somebody out there using Win can check my php.ini file and advise me what I'm doing wrong. I have uncommented: .. extension=php_gd.dll .. and have included: .. extension_dir = C:\php4\extensions I ru

[PHP] imageCreate() error

2003-01-16 Thread Ed
I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled php_gd and it does show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 directory (I've also tried it in almost every other directory too) and I get these error messages: Cannot add header information - headers already sent

Re: [PHP] Imagecreate and/or GD library not activated

2002-05-28 Thread Dennis Moore
check to see if gd is actually activated by using phpinfo() assuming you are using PHP4... /dkm - Original Message - From: "LeTortorec, Jean-Louis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 2:35 PM Subject: [PHP] Imagecreate and/or GD

[PHP] Imagecreate and/or GD library not activated

2002-05-28 Thread LeTortorec, Jean-Louis
Hello everyone. I wrote a little code creating PNG images under Apache/PHP windows. As the code works fine, I need to transfer it onto the Linux platform. When I execute the code, PHP replies "Fatal error: Call to undefined function: imagecreate()". I had libgd installed. I just added GD 1.8.4.

[PHP] ImageCreate v. ImageCreateTrueColor

2002-04-22 Thread Leotta, Natalie (NCI/IMS)
Hello, I'm making an Image and I was wondering what the difference is between these two Image constructors. I need to find a way to make dotted and dashed lines (according to different patterns I've been given) and I want the sections between the dots to be transparent. I'm planning on using t

[PHP] Subject: [PHP] imagecreate with Windows .exe installer

2002-02-23 Thread Mike Brackenridge
ruary 22, 2002 10:01 AM > To: [EMAIL PROTECTED] > Subject: [PHP] imagecreate with Windows .exe installer > > > php4 installed with Apache on Windows ME, using as localhost. > > I am trying to use imagecreate with a version of php4 that was installed > with the binary .exe inst

Re: [PHP] imagecreate with Windows .exe installer

2002-02-22 Thread Andrey Hristov
Did you restarted the Apache service? Regards, Andrey Hristov - Original Message - From: "Mike Brackenridge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 22, 2002 7:00 PM Subject: [PHP] imagecreate with Windows .exe installer > php4

RE: [PHP] imagecreate with Windows .exe installer

2002-02-22 Thread Hunter, Ray
22, 2002 10:01 AM To: [EMAIL PROTECTED] Subject: [PHP] imagecreate with Windows .exe installer php4 installed with Apache on Windows ME, using as localhost. I am trying to use imagecreate with a version of php4 that was installed with the binary .exe installer, php seems to be installed OK. I

[PHP] imagecreate with Windows .exe installer

2002-02-22 Thread Mike Brackenridge
php4 installed with Apache on Windows ME, using as localhost. I am trying to use imagecreate with a version of php4 that was installed with the binary .exe installer, php seems to be installed OK. I have changed the .ini file line: ;extension=php_gd.dll To extension=php_gd.dll But I get an e

[PHP] ImageCreate has failed... help please (urgent)

2001-07-18 Thread Thiago Locatelli da Silva
Hi there... Well, i have php 4.0.6 under windows 98 and i'm havin' some problens to use JPGRAPH 1.2.2 . I have this string as error: "Fatal error: Call to undefined function: imagecreate() in c:\utils\www\graph\jpgraph.php on line 2025" jpgraph.php file: 2025: $this->img = ImageCreate($aWid