Green channel

Delete the red and blue parts of an image leaving the green channel.

Green channel example
<?php 
exec
("convert $input10 -channel RB -fx 0 channel_green.jpg");
 
?>