Hello!
i want to creat thumbnail while uploading the picture i'm using a class for that it works fine when i upload a "jpeg" file but it give error when i try to upload a gif file..
Fatal error: Call to undefined function: imagegif()
any body knows y? my gd support is enabled in php.ini...
But i read somewhere tht gif function is no longer working in new versions of gd co'z of some copy rights stuff...
Any one can please help me if any other way to creat thumbnails which can support .gif and jpeg ?
thankx
Image Creation
Moderator: General Moderators
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
The GD library you have installed may not have support for GIF creation - the quickest way to find out:
If gd_info doesn't work you have a version of PHP less than 4.3.0.
Code: Select all
<?php
$gd = gd_info();
if ($gd[5])
{
echo "GIF Creation allowed";
}
?>Finally gif write support avaiable in ver 4 and 5 !
http://www.php.net/manual/en/ref.image.php
Only supported in GD versions older than gd-1.6. Read-only GIF support is available with PHP 4.3.0 and the bundled GD-library. Write support is avaliable since PHP 4.3.9 and PHP 5.0.1.
http://www.php.net/manual/en/ref.image.php
Only supported in GD versions older than gd-1.6. Read-only GIF support is available with PHP 4.3.0 and the bundled GD-library. Write support is avaliable since PHP 4.3.9 and PHP 5.0.1.