#22404 [Opn->Bgs]: imageCopyMergeGray does not work

From: Date: Tue, 25 Feb 2003 23:55:57 +0000
Subject: #22404 [Opn->Bgs]: imageCopyMergeGray does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34272@lists.php.net to get a copy of this message
 ID:               22404
 Updated by:       iliaa@php.net
 Reported By:      arebroff at rogers dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         GD related
 Operating System: Windows XP
 PHP Version:      4.3.1
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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?
-----------------
$old=@imagecreatefromjpeg("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



Thread (3 messages)

« previous php.bugs (#34272) next »