Re: [PHP] imagecreatefromgif & imagecolortransparent() ??

2008-12-04 Thread Ólafur Waage
Here's a code snippet from the php.net documentation on imagecolortransparent by Blaine Ehrhart See if it works. On Thu, Dec 4, 2008 at 10:44 AM, LucaP <[EMAIL PROTECTED]> wrote: > > Hi all, the simple code snippet: > > header('Content-type: image/gif'); > $im = imagecreatefromgif("/path/Mypic.

[PHP] imagecreatefromgif & imagecolortransparent() ??

2008-12-04 Thread LucaP
Hi all, the simple code snippet: header('Content-type: image/gif'); $im = imagecreatefromgif("/path/Mypic.gif"); $background = imagecolorallocate($im, 255, 255, 255); imagecolortransparent($im,$background); imagegif($im,'/path/TransparentPic.gif'); imagedestroy($im); is creating the new image b

Re: [PHP] imagecreatefromgif fails for a valid image

2007-09-24 Thread Thushara Wijeratna
Hi Tijnema It does appear to be a GIF. See output from file command below: for now, to get by I have copied over a libgd.so verion from a working centos installation over /usr/lib/libgd.so thanks, thushara >> file >> /home/thushw/mocha_src/LiveMocha/trunk/src/wwwroot/app/webroot/img/new/button-mi

Re: [PHP] imagecreatefromgif fails for a valid image

2007-09-24 Thread Tijnema
On 9/24/07, thushw <[EMAIL PROTECTED]> wrote: > > I get a failure in creating a gif. php error log shows this: > > Sep 24 00:25:47 thushw-laptop apache2: PHP Warning: imagecreatefromgif() [ > function.imagecreatefromgif function.imagecreatefromgif ]: > '/home/thushw/mocha_src/LiveMocha/trunk/src/w

[PHP] imagecreatefromgif fails for a valid image

2007-09-24 Thread thushw
I get a failure in creating a gif. php error log shows this: Sep 24 00:25:47 thushw-laptop apache2: PHP Warning: imagecreatefromgif() [ function.imagecreatefromgif function.imagecreatefromgif ]: '/home/thushw/mocha_src/LiveMocha/trunk/src/wwwroot/app/webroot/img/new/button-middle.gif' is not a v

Re: [PHP] imagecreatefromgif

2001-08-30 Thread David Robley
On Fri, 31 Aug 2001 05:56, Chris wrote: > The version of php that I use states that Gif Support is enabled. And > in fact I am > able to create and display gif images. However when it comes to > creating an image > from a file the imagecreatefromgif function doesn't seem to work. I'll > qualify do

[PHP] imagecreatefromgif

2001-08-30 Thread Chris
The version of php that I use states that Gif Support is enabled. And in fact I am able to create and display gif images. However when it comes to creating an image from a file the imagecreatefromgif function doesn't seem to work. I'll qualify doesn't work to mean a broken image icon is displayed