ID: 22404
User updated by: arebroff at rogers dot com
Reported By: arebroff at rogers dot com
Status: Bogus
Bug Type: GD related
Operating System: Windows XP
PHP Version: 4.3.1
New Comment:
I changed my code but new one does not work at all!
I have to mention that imageCopyMerge vs imageCopyMergeGray works good
in same function.
-----------------------------
$old=imagecreatefromjpeg("userspictures/2.jpg");
$new=imagecreatefromjpeg("userspictures/3.jpg");
imageCopyMergeGray($new, $old, 0, 0, 50, 50, 50, 50, 100);
Header("Content-type: image/jpeg");
Imagejpeg($new);
-----------------------------
Previous Comments:
------------------------------------------------------------------------
[2003-02-25 17:55:56] [EMAIL PROTECTED]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
The code does not work as expected due to the fact that both source &
destination images are the same. This function will not work unless you
are working with 2 seperate images (different content). When that is
the case the function appears to work correctly.
------------------------------------------------------------------------
[2003-02-24 16:41:17] arebroff at rogers dot com
This code outputs picture but it is not in grey palette and it does not
depend on $transition.
Why?
How do I need transform it to get image in black-and-white?
-----------------
[EMAIL PROTECTED]("userspictures/2.jpg");
$transition=0;
imageCopyMergeGray($old, $old, 0, 0, 100, 200, 300, 400, $transition);
Header("Content-type: image/jpeg");
Imagejpeg($old, '', 80);
-----------------
Thanks for any help.
Alexei
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22404&edit=1