#25476 [Fbk->NoF]: imagecopymergegray() crashes
| From: | sniper@php.net | Date: | Thu, 18 Sep 2003 10:03:04 +0000 |
| Subject: | #25476 [Fbk->NoF]: imagecopymergegray() crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47756@lists.php.net to get a copy of this message | ||
ID: 25476
Updated by: sniper@php.net
Reported By: ernesto at music dot lv
-Status: Feedback
+Status: No Feedback
Bug Type: GD related
Operating System: *
PHP Version: 4.3.3
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-09-10 19:54:23] sniper@php.net
Works fine for me. If you can provide the image you tried with, that
would help a lot. Also the configure line you used to configure PHP
helps.
------------------------------------------------------------------------
[2003-09-10 15:36:55] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2003-09-10 15:25:10] ernesto at music dot lv
Description:
------------
when using imagecopymergegray with pct value of 100, everything is
fine, i.e., imagecopymergegray works exactly as imagecopy. but, when
setting pct value to 99 or less, apache crashes.
Reproduce code:
---------------
$pic1 = imagecreatefromjpeg("my.jpg"); // 100x100px
$pic2 = imagecreatetruecolor(100, 100);
imacecopy($pic2, $pic1, 0, 0, 0, 0, 100, 100);
imagecopymergegray($pic2, $pic1, 0, 0, 0, 0, 100, 100, 50);
imagejpeg($pic2,"my2.jpg");
imagedestroy($pic2);
Expected result:
----------------
my2.jpg - slightly saturated version of my.jpg.
Actual result:
--------------
a crash.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25476&edit=1