php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25476 imagecopymergegray() crashes
Submitted: 2003-09-10 15:25 UTC Modified: 2003-09-18 06:03 UTC
From: ernesto at music dot lv Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.3 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ernesto at music dot lv
New email:
PHP Version: OS:

 

 [2003-09-10 15:25 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-10 15:36 UTC] 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 19:54 UTC] 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-18 06:03 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 17:01:29 2024 UTC