ID: 36726 Updated by: [EMAIL PROTECTED] Reported By: christoph at ziegenberg dot com -Status: Open +Status: Feedback Bug Type: GD related Operating System: Suse Linux 9.3 PHP Version: 5.1.2 Assigned To: pajoye New Comment:
Sorry I do not trace your changes :) which files did you add? Cannot be opened by imagecreatefromjpeg? What does that mean? It crashes or you have an error message? The phpinfo you provide is useless as it does not show the GD informations... Previous Comments: ------------------------------------------------------------------------ [2006-03-20 18:45:55] christoph at ziegenberg dot com It is the bundled GD. I added two additional files for you to compare - one working fine and one producing the expected error, because it could not be opened by imagecreatefromjpeg(). And I added a link to allow you a look on the basic phpinfo() output. I will provide you with further information, if needed. As I already mentioned it seems to work on other systems. And as also mentioned another user had the same problem - so there seems to be something wrong, doesn't it? ------------------------------------------------------------------------ [2006-03-18 23:24:09] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. All images work well for me. You can try yourself with this script, put all your images in a 36726 folder and run this script: $basedir = "./36726/"; $images = array('14844.jpg', '18925.jpg', '21987.jpg'); foreach ($images as $a) { $im = imagecreatefromjpeg($basedir . $a); imagejpeg($im, $basedir . "$a.2.jpeg"); echo "$a done\n"; } Be sure to use the bundled GD ("configure --with-gd"). ------------------------------------------------------------------------ [2006-03-18 18:40:55] christoph at ziegenberg dot com I uploaded the images and a testscript. Look here: http://www.ziegenberg.com/jpegbug/ ------------------------------------------------------------------------ [2006-03-13 22:59:31] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Please give us an image to reproduce your problem. ------------------------------------------------------------------------ [2006-03-13 22:37:23] christoph at ziegenberg dot com Description: ------------ Using imagecreatefromjpeg() lets PHP crash without an error message. also using @imagecreatefromjpeg() doesn't help - it's not possible to check the returning value. I the user comments a user already described problems with jpegs created by "Canon PowerShot S70", my image (uploaded by a user) was created by a "Canon PowerShot A400". So this seems to be the problem. It worked on my Windows XP without any problem, but on Suse it crashed... Reproduce code: --------------- I'll ask the user to upload the picture here. Then simply call imagecreatefromjpeg() with this image. Expected result: ---------------- No crash, but an error message and an empty return value. Actual result: -------------- Crash ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36726&edit=1