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.
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
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
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
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
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
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
7 matches
Mail list logo