ID: 50125 Comment by: vhaban at atlas dot cz Reported By: vhaban at atlas dot cz Status: Feedback Bug Type: GD related Operating System: Fedora 11 x86 64bit PHP Version: 5.3.1RC3 New Comment:
I have compiled GD with libjpeg 6.2 and 7 and both behave the same. However, phpinfo reports the version of libjpeg as unknown. Is this correct? When I use internal GD, then it reports 2.0.34. When I use external compiled GD, then there is just 2. Previous Comments: ------------------------------------------------------------------------ [2009-11-10 11:46:51] vhaban at atlas dot cz As I have already mentioned, it is not the problem of JPEG files themselves, because it cannot open any JPEG file. If I create a fresh new JPEG file in GIMP and try to open it, GD fails. If I convert a PNG into JPEG, it fails. The files can be opened in any editor, viewer without problems. The problem seems to be somewhere in the unability to properly detect the file type. But the problem with invalid return type should be already solved in PHP 5.3.1RC3 and I have checked the file and it seems to be as it should be. But there seems to be some other similar bug. ------------------------------------------------------------------------ [2009-11-10 10:26:39] j...@php.net You need to provide the problematic jpeg file. For me this works just fine on Fedora 11 / 64bit. ------------------------------------------------------------------------ [2009-11-09 15:01:41] vhaban at atlas dot cz Description: ------------ I am not able to open jpeg files using imagecreatefromjpeg function and still get this: Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: 'x.jpg' is not a valid JPEG file in ... But it seems that it is not the problem of current PHP version, because it behaves the same with 5.2.9. I have examined both internal and external GD library still with the same result. I have tried gd.jpeg_ignore_warning and also the bug with invalid return type is already solved in 5.3.1RC3. It seems to be rather some compilation error specific to 64 bit Fedora. But no errors are reported during compilation and everything seems to be fine, imagecreatefrompng() is doing perfectly, for example, and the jpeg images are not corrupted. Thank you for any help. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50125&edit=1