Re: [PHP] GD Library

2007-10-31 Thread Jochem Maas
Charlene wrote:
 I have the GD Library installed, but I don't see any of the fonts.  What
 is the preferred location to download fonts (standard fonts like Arial,
 Verdana, etc.) and which directory should they be stored in?

'standard fonts' is not. and any directory you want. upload any legal fonts
you have/need.

http://php.net/manual/en/function.imagettftext.php

... pass it in the fullpath to the .tff file (amongst other things)

 
 Charlene
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] GD Library

2007-09-13 Thread Jay Blanchard
[snip]
I am running PHP 4.4.7 without the GD Library and need it to run.
I am very novice on PHP, and am using a Mac with 10.3.9.
Can anyone point me in the right direction?
[/snip]

http://www.php.net/gd tells you how to get and install the libraries.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library

2007-09-13 Thread Greg Donald
On Thu, 13 Sep 2007, Steve Marquez wrote:
 I am running PHP 4.4.7 without the GD Library and need it to run.
 I am very novice on PHP, and am using a Mac with 10.3.9.
 Can anyone point me in the right direction?


http://destiney.com/blog/php-4-5-macos-x

Hopefully those configs aren't totally outdated.


-- 
Greg Donald
Cyberfusion Consulting
http://cyberfusionconsulting.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library

2007-09-13 Thread Samuel Vogel

I would point you to MAMP:
http://www.mamp.info/

It's like Xampp but designed all for a Mac... Easy to install, to 
configure and to user ;)


Regards,
Samy

Greg Donald schrieb:

On Thu, 13 Sep 2007, Steve Marquez wrote:
 

I am running PHP 4.4.7 without the GD Library and need it to run.
I am very novice on PHP, and am using a Mac with 10.3.9.
Can anyone point me in the right direction?




http://destiney.com/blog/php-4-5-macos-x

Hopefully those configs aren't totally outdated.


  


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library and outputing image

2007-06-15 Thread tedd

At 9:17 PM +0100 6/13/07, Ross wrote:

Never really used the GD much before very straightforward but how do I
output the image on a page. This is  fine on a php page on its own but what
about one where the headers are already sent?


Ross:

That's not a problem. See this:

http://xn--nvg.com/rotated_text  -- if your browser chokes, get a 
better browser


The image code (text.php) is:

?php
Header (Content-type: image/gif);
$im = imagecreate (150, 150);
$background = ImageColorAllocate ($im, 238, 238, 238);
$text_color = ImageColorAllocate ($im, 00, 51, 102);//#036 00 33 66 HEX
ImageTTFText ($im, 20, 45, 30, 130, $text_color, arial.ttf,
  Hello World...);
ImageGif ($im);
ImageDestroy ($im);
?

and it's called from html like this:

img src=text.php

If you put this into your site, you'll need arial.tff to make it 
work, but you can find it in lot's of places.


Cheers,

tedd


--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library and outputing image

2007-06-13 Thread Daniel Brown

On 6/13/07, Ross [EMAIL PROTECTED] wrote:

Never really used the GD much before very straightforward but how do I
output the image on a page. This is  fine on a php page on its own but what
about one where the headers are already sent?


I take it I can do something like  this img
scr=get_image.php?url=$img_url/a. Anyone got a better method?




$image = imagecreatefromjpeg($img_url);
if ($image === false) { die ('Unable to open image'); }

// Get original width and height
echo $width = imagesx($image);
echo $height = imagesy($image);

// New width and height
$new_width = 200;
$new_height = 150;

// Resample
$image_resized = imagecreatetruecolor($new_width, $new_height);
imagecopyresampled($image_resized, $image, 0, 0, 0, 0, $new_width,
$new_height, $width, $height);

// Display resized image
header('Content-type: image/jpeg');
imagejpeg($image_resized);
die();

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




   Aside from perhaps changing die(); to exit;, though not necessary,
I'd say that it looks like you're right on track.  Until you find a
better way to have HTML display an image than through IMG SRC=..., I
think it's good to go.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library and outputing image

2007-06-13 Thread Stephen


Ross [EMAIL PROTECTED] wrote:Never really used the GD much before very 
straightforward but how do I 
output the image on a page. This is fine on a php page on its own but what 
about one where the headers are already sent?
   
  Save the image as file, first.
   
  The href src= etc


Re: [PHP] GD Library and outputing image

2007-06-13 Thread Daniel Brown

On 6/13/07, Stephen [EMAIL PROTECTED] wrote:



Ross [EMAIL PROTECTED] wrote:Never really used the GD much before very 
straightforward but how do I
output the image on a page. This is fine on a php page on its own but what
about one where the headers are already sent?

  Save the image as file, first.

  The href src= etc



   If space isn't an issue, that's an alternative answer

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library or PHP Function

2006-03-24 Thread tedd

On Wed, March 22, 2006 9:18 pm, brian dichiara wrote:

 Is there a way to check to see if a JPEG or PDF is color or
 black/white?
 Like a function or something?


There does not appear to be a built-in function that does that...



I don't know of any either, but that's the reason when I put an image 
into a dB, I also put in the type.


tedd

--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library or PHP Function

2006-03-23 Thread Richard Lynch
On Wed, March 22, 2006 9:18 pm, brian dichiara wrote:
 Is there a way to check to see if a JPEG or PDF is color or
 black/white?
 Like a function or something?

There does not appear to be a built-in function that does that...

However, this hack should work:

function image_is_color($image){
  for ($x = 0, $xmax = imagesx($image); $x  $xmax; $x++){
for ($y = 0, $ymax = imagesy($image); $y  $ymax; $y++){
  $index = imagecolorat($image, $x, $y);
  list($r, $g, $b) = imagecolorsforindex($image, $index);
  //If all images are TrueColor, the preceding can be replaced with
  // $r = ($index  16)  0xFF;
  // $g = ($index  8)  0xFF;
  // $b = $index  0xFF;
  // because in TrueColor the index is just the 24-bit color value
  if ($r != $g || $g != $b) return true;
  // You could add || $r != $b, but it's a tautology, no???
}
  }

  //If we made it here, EVERY damn pixel has R==G==B, so it's grayscale
  return false;
}

NOTE:
This is NOT going to be fast, especially for large images, especially
for large gray-scale images, in which EVERY pixel will get checked
before we know it's grayscale.

If you have MOSTLY grayscale images and a few color, switch around the
true/false and the test and make it is_grayscale() so you can bail out
MUCH faster, when the first few pixels prove an image is NOT what you
usually have.

You could also set up a multi-threaded environment and run is_color
and is_grayscale and then time-out the one that takes forever...  This
might be best if you have humoungous images and you are checking them
in a cron job or something.

Still, if you have an image that's all grayscale, and only the
top-right corner is color, or vice versa, you're gonna wait a long
time...

H.

If it's NOT a TrueColor image, and imagecolorstotal() returns a
small number, then you could MUCH faster just do:

function is_color($image){
  for ($index = 0, $total = imagecolorstotal($image); $index  $total;
$index++){
list($r, $g, $b) = imagecolorsforindex($image, $index);
if ($r != $g || $g != $b) return true;
  }
  return false;
}

Which then makes me think that maybe you should do:
function is_color($image){
  $xmax = imagesx($image);
  $ymax = imagesy($image);
  $count = imagecolorstotal($image);

  if ($count  ($xmax * $ymax)){
//call my first version, cuz the image is 'small' in x/y size
  }
  else{
//call my second version, cuz the image has few colors in palette
  }
}

Some benchmarks could be done to refine the test that chooses between
the function bodies -- If imagecolorsforindex() is inherently
slower/faster than imagecolorat() + bit-shifting, then you'd want to
factor in the speed difference.

Have fun!

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD library

2005-07-09 Thread Rasmus Lerdorf
Mike Bellerby wrote:
 Where is the best place to get php_gd2.dll

It's in the ext/ directory of the Win32 zip file you downloaded.  Or if
you didn't, go grab it from
http://uk.php.net/get/php-5.0.4-Win32.zip/from/this/mirror

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD library images not displaying

2005-06-21 Thread Richard Davey
Hello Ross,

Tuesday, June 21, 2005, 4:47:40 PM, you wrote:

RT I am running Apache 2.0 with PHP 4.2.11 on Windows XP.
RT I installed php_gd2.dll by uncommenting extension=php_gd2.dll
RT and making sure that the file was in my extension_dir.
RT I restarted Apache and didn't get an error, so assumed it was working.
RT When I run my example code:

[snip]

RT I get the following error:

RT Fatal error: Call to undefined function:
RT imagecreatetruecolor() in imagetest.php on line 2

RT This code works on other servers, so where have I gone wrong in my 
installation of GD?

Create a file with phpinfo(); in it - view it. Does it have the GD
extension listed?

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 I do not fear computers. I fear the lack of them. - Isaac Asimov

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD library with tiff images

2004-12-16 Thread Richard Lynch
[EMAIL PROTECTED] wrote:
 I am trying to write an image upload facility, which resizes the images,
 which I am obviously using the GD library for. Does anyone know if there
 are any functions I can use to read in images encoded in tiff image
 format?

As far as I know, the GD image functions of PHP do not support TIFF.

A very very very brief search on Boutell's site didn't turn up TIFF
either, so I'm guessing it's just not in GD at all.

One option might be to convert to JPEG using ImageMagik (aka convert).

At that point, depending on your application, you might as well have
ImageMagik scale it too.

You'll need to use http://php.net/exec and maybe mess around with shell
permissions and paths a bit.

GD is great, but for re-sizing your uploaded images, it might be better to
write a shell script in some kind of cron job to resize/move images using
ImageMagik -- If you have to pop out to a shell (which is what exec does,
essentially) you might as well just start (and stay) in the shell anyway. 
YMMV

The last paragraph really only applies if performance is a significant
factor in your upload routine.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library list

2004-09-11 Thread Curt Zirzow
* Thus wrote bskolb:
 Does anyone know if there is a mailing list for gdlib?  Can't seem to find
 in Google.
This is there homepage:
 http://www.boutell.com/gd/

I dont see any list there though.

Curt
-- 
The above comments may offend you. flame at will.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Gd library not found

2004-05-08 Thread Ray Hunter
On Sat, 2004-05-08 at 10:46, Phpu wrote:
 Where can i get the gd library for windows. I've googled but i can't find it.

It should be bundled with the zip file version of windows php. You will
probably have to download the zip file from php.net and then get the dll
for gd out of the zip file and put it where php can load it up.

--
Ray

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gd library + animated gif

2003-03-28 Thread Liam Gibbs
 Can GD library produce animated gif's?

The PHP manual will tell you this. I'll save you the trouble, but next
time... well... the PHP manual will tell you stuff like this:

Since a certain version of PHP, GIFs are unsupported. I'm told they can be
read, but as far as producing new ones (resizing, changing, etc.) there's a
copyright issue over its encryption method. To use GD completely, go wtih
JPG or PNG. But, there is ImageMagick(?). Check that out. Anyone got a URL?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gd library + animated gif

2003-03-28 Thread Liam Gibbs
  Can GD library produce animated gif's?

Sorry. Maybe I should read more carefully. I skipped 'animatd' for some
reason? Still, no, GD won't produce animated GIFs.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] gd library + animated gif[Scanned]

2003-03-28 Thread Michael Egan
There's a section on Freshmeat about the ImageMagick project with further links:

http://freshmeat.net/projects/imagemagick/?topic_id=100

Given your previous comment it's tempting to say that a search on Google for 
'ImageMagick' would, er - well - but I'll resist :-)

Regards,

Michael


 Can GD library produce animated gif's?

 The PHP manual will tell you this. I'll save you the trouble, but next
time... well... the PHP manual will tell you stuff like this:

 Since a certain version of PHP, GIFs are unsupported. I'm told they can be
 read, but as far as producing new ones (resizing, changing, etc.) there's a
 copyright issue over its encryption method. To use GD completely, go wtih
 JPG or PNG. But, there is ImageMagick(?). Check that out. Anyone got a URL?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gd library

2002-11-17 Thread Jason Sheets
Hello,

YOu will need to provide some more information like your configure line,
the errors that you are receiving. Did you specifcy
--with-gd=/path/to/gd/install or just --with-gd?

What errors did you receive?  --with-gd=/path-to-gd works fine with me
with FreeBSD 4.7-STABLE, gd2 and PHP 4.2.3 and 4.3, and dev.

As you can see there are many different system configurations out there
so more details are needed before anyone can help you.

Jason

On Sat, 2002-11-16 at 19:14, A3-Mail Proxy Handler wrote:
 Hi,
 I am trying to add gd support to my php configuration. But I could not
 manage...
 
 Here is the versions:
 php 4.2.3, gd 2.0.7, slackware 8.1, apache 1.3.27
 
 in the make of php, php gives error with gd librarys...
 (sorry, I cannot give errors now, I cannot simulate the situation for now)
 
 Is this a known issue?
 Does this happens to everyone?
 Should I add something different during configure?
 (I used only --with-gd)
 
 Thanks...
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD Library

2002-07-25 Thread Tech Support

I'm not a windoze user but if that line has a ; at the beginning of it
like you have it in your message then it is commented out! LOL. :-)

Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: Ryan Moore [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 1:44 PM
Subject: [PHP] GD Library


 I am trying to use GD Library on a windows 2000 installation of PHP.
 php_gd.dll is in the extensions folder and the line:
;extension=php_gd.dll
 is in my php.ini file, but I recieve the error: Fatal error:  Call to
 undefined function:  imagecreate() when I try to use the
 imagecreate(100,100) function. Any ideas?

 Thanks!



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] GD Library

2002-07-25 Thread Jay Blanchard

[snip]
I am trying to use GD Library on a windows 2000 installation of PHP.
php_gd.dll is in the extensions folder and the line: ;extension=php_gd.dll
is in my php.ini file, but I recieve the error: Fatal error:  Call to
undefined function:  imagecreate() when I try to use the
imagecreate(100,100) function. Any ideas?
[/snip]

Remove the ; in front of the extension listing in your .ini file and
restart your web server.

HTH!

Jay



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] GD Library

2002-07-25 Thread Matt Babineau

Not only the solution just posted, but I was using this before and
needed to set the dll used to php_gd2.dll, I am pretty sure it got
renamed in one of the more recent releases of PHP.

Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105


-Original Message-
From: Ryan Moore [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 25, 2002 2:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] GD Library


I am trying to use GD Library on a windows 2000 installation of PHP.
php_gd.dll is in the extensions folder and the line:
;extension=php_gd.dll is in my php.ini file, but I recieve the error:
Fatal error:  Call to undefined function:  imagecreate() when I try to
use the
imagecreate(100,100) function. Any ideas?

Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD Library

2002-07-25 Thread Jadiel Flores

If you dowloaded the PHP 4.2.2 installer you don't have the php_gd.dll in 
your machine, you have to download the PHP 4.2.2 zip package from php.net 
and overwrite all your files in the php folder, this zip file contains all 
the dll's for windows including the php_gd.dll, then remove the ; in the 
Windows Extensions part of your php.ini corresponding to the gd library and 
check that the extension_dir in Paths and Directories has the same 
directory where the extensions are.

At 01:44 PM 7/25/2002 -0500, you wrote:
I am trying to use GD Library on a windows 2000 installation of PHP.
php_gd.dll is in the extensions folder and the line: ;extension=php_gd.dll
is in my php.ini file, but I recieve the error: Fatal error:  Call to
undefined function:  imagecreate() when I try to use the
imagecreate(100,100) function. Any ideas?

Thanks!



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Jadiel Flores
-
http://www.abargon.com
[EMAIL PROTECTED]
(52-55) 52-29-80-34



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD Library for Windows

2002-07-25 Thread Mikey

It comes with the zip file of that distribution - and it works fine (except
for TTF which I can't for the life of me get to work on Win32)

frak!
Peter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Jadiel,

 i do that the file ur after and tried sending it to u but ur server
rejected
 it.

  -Original Message-
  From: Jadiel Flores [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, 24 July 2002 9:03 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] GD Library for Windows
 
 
  I'm trying to develop a thumbnail creation module for a website
  but I can't
  get gd library to work in a Win2000 Advanced Server, PHP 4.2.1, IIS 5.
 
  Does anybody has the php_gd.dll for this version??
 
  Thanks.
 
 
  Jadiel Flores
  -
  http://www.abargon.com
  [EMAIL PROTECTED]
  (52-55) 52-29-80-34
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] GD Library for Windows

2002-07-23 Thread Peter

Jadiel,

i do that the file ur after and tried sending it to u but ur server rejected
it.

 -Original Message-
 From: Jadiel Flores [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, 24 July 2002 9:03 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] GD Library for Windows


 I'm trying to develop a thumbnail creation module for a website
 but I can't
 get gd library to work in a Win2000 Advanced Server, PHP 4.2.1, IIS 5.

 Does anybody has the php_gd.dll for this version??

 Thanks.


 Jadiel Flores
 -
 http://www.abargon.com
 [EMAIL PROTECTED]
 (52-55) 52-29-80-34



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD library problem

2002-05-14 Thread Rasmus Lerdorf

 This is funny: I have getimagesize(), but not
 createimage() and things like that. Is this because
 getimagesize() is not part of the GD library...? Or is
 there a problem with my GD library?

getimagesize() is not part of GD.  You likely didn't add the GD extension
correctly to PHP.

 Also, is there any resolution to this GIF copyright
 thing going on with Unisys? I want to be able to
 resize images and whatnot, but I don't want to
 multiply image upload time by about 5 because I have
 to switch to JPG format. Is PNG format supported by
 older browsers? Incidentally, getimagesize() works on
 GIFs. I thought GIF format wasn't supported.

The copyright issue really has nothing to do with PHP.  Talk to the GD
folks.  It is not our decision.  With the bundling of GD in 4.3 that
changes a bit, but it only applies to generating gifs, not reading them.
There are versions of GD out there that have jpg, png and gif all
included.  PHP supports these hacked versions.

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD library problem

2002-05-14 Thread Liam Gibbs

 getimagesize() is not part of GD.  You likely didn't
 add the GD extension correctly to PHP.

That's what I figured, but I wasn't sure about it.
Dagnabbit. I'm gonna have to try harder with GD. :)

 The copyright issue really has nothing to do with
 PHP.  Talk to the GD
 folks.  It is not our decision.  With the bundling
 of GD in 4.3 that
 changes a bit, but it only applies to generating
 gifs, not reading them.
 There are versions of GD out there that have jpg,
 png and gif all
 included.  PHP supports these hacked versions.

I know it has nothing to do with PHP. I just thought
someone might have some news on it.


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD library problem

2002-05-14 Thread Rasmus Lerdorf

By the way, there is no createimage() function.  It is called
imagecreate().  And the only real news is that the Unisys patent expires
in 2003, so we might be able to do something then.  But GIF needs to die.
It's a crappy format.  PNG is well supported in all browsers.

-Rasmus

On Tue, 14 May 2002, Liam Gibbs wrote:

  getimagesize() is not part of GD.  You likely didn't
  add the GD extension correctly to PHP.

 That's what I figured, but I wasn't sure about it.
 Dagnabbit. I'm gonna have to try harder with GD. :)

  The copyright issue really has nothing to do with
  PHP.  Talk to the GD
  folks.  It is not our decision.  With the bundling
  of GD in 4.3 that
  changes a bit, but it only applies to generating
  gifs, not reading them.
  There are versions of GD out there that have jpg,
  png and gif all
  included.  PHP supports these hacked versions.

 I know it has nothing to do with PHP. I just thought
 someone might have some news on it.


 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] gd library with GIF support

2002-01-31 Thread bvr


Hi,

The GIF enabled versions are not officially available anymore
for reasons stated on GD's website http://www.boutell.com/gd .

And even if you were able to get hold of a copy, compiling it against
the latest PHP is not that easy and may become harder in time.

Therefore it would be recommended to avoid problems in the future and
use PNG instead, however, if you want to use transparency in your images
bear in mind that a number of implementations do not support this.
For example the quicktime plugin that handles PNGs in Netscape 4.x .

Unfortunately this makes it impossible to use GD for certain purposes,
I had this problem when I was trying to migrate websites from PHP 3
to the latest PHP 4 and was unable to compile the older GD lib against
PHP versions  4.05pl1 .

Also check this effort to compile later versions of GD with GIF *and* PNG
support: http://www.acc.ne.jp/~tam/GD/index.en.html


bvr.

On Wed, 30 Jan 2002 21:21:53 -0800, Ed Lazor wrote:

I'm trying to play with the gif functions this program supports.  I'm 
having trouble finding it.  Could someone e-mail it to me?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] gd library with GIF support

2002-01-31 Thread Ed Lazor


Therefore it would be recommended to avoid problems in the future and
use PNG instead, however, if you want to use transparency in your images
bear in mind that a number of implementations do not support this.
For example the quicktime plugin that handles PNGs in Netscape 4.x .

Yea... the main reason of still having to use gif is animation for 
banners.  hmmm  Maybe I'm assuming something - png doesn't support 
animation, right?  If it does, is it easy to convert animated gifs to png?

-Ed


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] GD Library help

2001-09-22 Thread Don Read


On 22-Sep-2001 Jay Paulson wrote:
 Do all versions of the GD library for Linux that are version 1.6 and above
 not support any GIF formats?

Yes, It was removed due to copyright restrictions.
from http://www.boutell.com/gd/manual1.8.4.html :

 Support for GIF has been removed. This step was taken to completely avoid the
legal controversy regarding the LZW compression algorithm used in GIF. Unisys
holds a patent which is relevant to LZW compression.  

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] GD library

2001-07-28 Thread Clayton Dukes

www.boutell.com


- Original Message - 
From: Manu Verhaegen [EMAIL PROTECTED]
To: 'Php-General (E-mail) [EMAIL PROTECTED]
Sent: Saturday, July 28, 2001 12:51 PM
Subject: [PHP] GD library


 I want to install the GD library for PHP
 I seek libpng and zlib and jpeg-6b can you help me
 
 Greetings,
 Manu Verhaegen
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] GD library

2001-07-28 Thread Alexander Wagner

Manu Verhaegen wrote:
 I want to install the GD library for PHP
 I seek libpng and zlib and jpeg-6b can you help me

For what OS?

regards
Wagner

-- 
Isn't it strange? The same people who laugh at gypsy fortune tellers take 
economists seriously.
 - Cincinnati Enquirer   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] gd library on win2k?

2001-06-25 Thread Richard Lynch

 how can i install the gd library for php on win2k using iis5?

The IIS5 part is irrelevant, I think...

Dig around for a file++ whose name is composed of GD, PHP, and .DLL.

Put it next to all your other PHP DLL files.

Alter your php.ini to refer to it the way it refers to other PHP DLLs.

It's Windows:  Pray.

++ Disclaimer:  I have no idea if such a file exists or not...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] GD library

2001-02-13 Thread David Robley

On Wed, 14 Feb 2001 00:23, Rahul Hari Bhide wrote:
 Hi ,
 I am configuring php with the  --with-gd option .
 My libgd.a is sitting in /usr/local/lib and other header files in
 /usr/local/include .

 ./configure --with-gd=/usr/local/lib gives me the following error :

 checking whether to include GD support... configure: error: Unable to
 find libgd.(a|so) anywhere under /usr/local/lib

 though the file is very much existant.

 Any ideas what is wrong???

 ~Rahul

Try ./configure --with-gd=/usr/local

Then configure will look in lib under that path for the libraries and 
include for the include files.

-- 
David Robley| WEBMASTER  Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] GD library

2001-02-13 Thread Michael McGlothlin

Have you tried Apache Toolbox? If building under Unix w/ Apache as your 
web server it can be a great time saver and if your running into 
problems you can look how it builds something and see how to make it 
work so you'll know later. You can find it easily from Freshmeat.net.

David Robley wrote:

 On Wed, 14 Feb 2001 00:23, Rahul Hari Bhide wrote:
 
 Hi ,
 I am configuring php with the  --with-gd option .
 My libgd.a is sitting in /usr/local/lib and other header files in
 /usr/local/include .
 
 ./configure --with-gd=/usr/local/lib gives me the following error :
 
 checking whether to include GD support... configure: error: Unable to
 find libgd.(a|so) anywhere under /usr/local/lib
 
 though the file is very much existant.
 
 Any ideas what is wrong???
 
 ~Rahul
 
 
 Try ./configure --with-gd=/usr/local
 
 Then configure will look in lib under that path for the libraries and 
 include for the include files.
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] GD Library ??? Where to find.

2001-01-15 Thread Cynic

www.boutell.com/gd/ IIRC

At 18:26 15.1. 2001, Dallas Kropka wrote the following:
-- 
Please point me to the GD library I cant seem to find it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--end of quote-- 




Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]