Edit report at https://bugs.php.net/bug.php?id=62632&edit=1

 ID:                 62632
 Updated by:         paj...@php.net
 Reported by:        marc at phpmyadmin dot net
 Summary:            Incorrect image generated
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            GD related
 Operating System:   Linux
 PHP Version:        5.4.5
 Block user comment: N
 Private report:     N

 New Comment:

.


Previous Comments:
------------------------------------------------------------------------
[2013-02-18 17:26:56] marc at phpmyadmin dot net

The solution is to use null as the second parameter of ImageJPEG(). In PHP 
5.3.13, using '' worked.

------------------------------------------------------------------------
[2013-02-18 13:00:44] ka...@php.net

have you tried to call the script like:

<?php
$contents = file_get_contents('marc.jpg');

$srcImage = imagecreatefromstring($contents);
ImageJPEG($srcImage, '', 75);
?>

And see if PHP errors out? If headers are sent its often hidden by browsers. 
Simply go to image.php directly and see if you either get a lot of 'binary' 
text or an actual PHP error.

------------------------------------------------------------------------
[2012-09-15 05:27:35] david at nnucomputerwhiz dot com

Works for me in php 5.4.4-4 from Debian testing.

------------------------------------------------------------------------
[2012-07-22 20:52:10] marc at phpmyadmin dot net

Here is the image I used:
http://www.infomarc.info/MarcDelisle-140x185.jpg

------------------------------------------------------------------------
[2012-07-22 19:18:32] a...@php.net

$contents = file_get_contents('marc.jpg');

A link to marc.jpg would be useful.

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


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

    https://bugs.php.net/bug.php?id=62632


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

Reply via email to