ID: 25593 Comment by: robert at profundis dot se Reported By: omegatron at comcast dot net Status: Open Bug Type: *Configuration Issues Operating System: Windows PHP Version: 4.3.2 New Comment:
> 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. Previous Comments: ------------------------------------------------------------------------ [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) ------------------------------------------------------------------------ [2003-09-18 11:24:55] omegatron at comcast dot net Description: ------------ Hello All, This is a simple error. I notice it is not in PHP versions one compiles themselves. This has to do with windows precompiled binaries. I also tested with the same results on version 4.3.3 If you do a phpinfo commmand after installing one will see that GD2 is installed by default with GIF READ ENABLED AND TTF SUPPORT. However I I have two different programs that deal with gif file uploads and one with ttf. None work with these PHP compiled versions. On a Unix system where PHP is self compiled with these on everything works on these systems. Alot of research and some further coding to truly check for whether gif read was enabled revealed on the precompiled windows binaries found it was not. So thus I come here. Can Binaries be made for windows that truly have these features enabled. I would have to do alot of things to compile PHP on my windows system. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25593&edit=1