ID: 25593 User updated by: omegatron at comcast dot net Reported By: omegatron at comcast dot net Status: Open Bug Type: *Configuration Issues Operating System: Windows PHP Version: 4.3.2 New Comment:
It does not get created. imagecreatefromgif is false even though gif read is enabled. Previous Comments: ------------------------------------------------------------------------ [2003-09-18 23:42:16] robert at profundis dot se > Sorry it is imagecreatefromgif THIS FAILS Does imagecreatefromgif() fail? Not sure, but if it wasn't supported, I think you'd get an error about that the function doesn't exist. Exactly what error do you get? Is an image created, but empty? Does the function return false? This function works fine on several of my installations, including 4.3.2 and 4.3.3. > imagegif is a temp fix to let one know gif is not > supported and can't be used. I'm not sure what you mean here. imagegif() will not be supported if it's only "READ ENABLED", because it encodes gifs. Even if imagegif() isn't supported, you should be able to use imagecreatefromgif(), as it only decodes. ------------------------------------------------------------------------ [2003-09-18 20:54:37] omegatron at comcast dot net Sorry it is imagecreatefromgif THIS FAILS imagegif is a temp fix to let one know gif is not supported and can't be used. ------------------------------------------------------------------------ [2003-09-18 20:22:54] robert at profundis dot se > They are simply reading the gif and then they convert to > jpg. What is happening is in the windows binaries PHP > reports GD is compiled with gif read enabled but in > reality it is not. I asked what operations they performed and what error message was reported, if any. Which PHP function can't handle gifs? I can certainly read gifs with my installation, currently 4.3.3RC2 pre-compiled Windows binary. This works fine: <?php $imgfile = 'some.gif'; $img = imagecreatefromgif($imgfile); imagepng($img); ?> ------------------------------------------------------------------------ [2003-09-18 19:39:46] omegatron at comcast dot net Hey I do not have thousand dollars to be a C++ compiler. This has nothing to do with the programs. They are simply reading the gif and then they convert to jpg. What is happening is in the windows binaries PHP reports GD is compiled with gif read enabled but in reality it is not. I can take the same program and run on a unix machine with gd gif read enabled and it works. There has been extensive testing and it comes back to the windows binaries not compiling right. They report gif read and ttf are enabled but they are not. If I had the ability to compile my own windows version I would, ------------------------------------------------------------------------ [2003-09-18 19:13:32] robert at profundis dot se What operations are your programs performing on the gifs/tiffs? In what way do they fail? Error message? Note, compiling on Windows is not very hard, you'll find all instructions on how to do it here: http://www.php.net/manual/en/install.windows.php (not mentioned there, it is the php4apache[2] project you shall compile if you want the Apache module) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25593 -- Edit this bug report at http://bugs.php.net/?id=25593&edit=1