Transparent overlay

Add a transparent blue image over another image.

Transparent overlay example Transparent overlay example
<?php 
$cmd 
"-blend 88 -gravity northeast bluetest.jpg $input10 -matte";
exec("composite $cmd blue.jpg");

// Alternatively you could use the "Colorize" operator.
exec("convert flowers.jpg -fill blue -colorize 50% blue.jpg");

//This gives a different effect when used on a black and white image.
exec("convert black_white.jpg xc:blue -size 1x1 -fx \"u*v.p{0,0}\" blue.png");
 
?>

The colours can be different and the amount of transparency can be altered with the -blend 88 value.