ID:               36726
 User updated by:  christoph at ziegenberg dot com
 Reported By:      christoph at ziegenberg dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         GD related
 Operating System: Suse Linux 9.3
 PHP Version:      5.1.2
 Assigned To:      pajoye
 New Comment:

Download it here:
http://www.ziegenberg.com/jpegbug/images.zip

Maybe the setup is the problem, but 99% of the uploaded images work
fine. Nevertheless you should get an error you can work with...


Previous Comments:
------------------------------------------------------------------------

[2006-03-20 19:42:57] [EMAIL PROTECTED]

Sorry, can you provide me *one* archive with all the images inside? 

FYI, I tried "11848.jpg" and it works well.

I feel like your system is broken or you are doing something wrong in
your setup.

------------------------------------------------------------------------

[2006-03-20 19:33:55] christoph at ziegenberg dot com

I added the following images: 21839.jpg, 21494.jpg, 7737.jpg,
22086.jpg, 11848.jpg

You can see the GD information on the main page (gd_info() output), but
now you will also see the output from the phpinfo() (filtered to not
publish more information than needed).

"cannot be opened by imagecreatefromjpeg" means that the function
imagecreatefromjpeg() will return an empty string and create an error
for some of the new image - try it and you'll see what I mean. This is
what I expect for the first uploaded images if there is something wrong
with the format (although I don't know what this is for the example
images)...

------------------------------------------------------------------------

[2006-03-20 18:58:12] [EMAIL PROTECTED]

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...

------------------------------------------------------------------------

[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").

------------------------------------------------------------------------

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/36726

-- 
Edit this bug report at http://bugs.php.net/?id=36726&edit=1

Reply via email to