|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-10 15:36 UTC] derick@php.net
[2003-09-10 19:54 UTC] sniper@php.net
[2003-09-18 06:03 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
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.