PHP Classes

Merging images for watermark

Recommend this page to a friend!

      GD2 Imaging  >  All threads  >  Merging images for watermark  >  (Un) Subscribe thread alerts  
Subject:Merging images for watermark
Summary:Need to know to merge 2 images for watermark.
Messages:2
Author:Amjad Ali
Date:2013-03-20 12:54:21
Update:2013-03-21 12:15:16
 

  1. Merging images for watermark   Reply   Report abuse  
Picture of Amjad Ali Amjad Ali - 2013-03-20 12:54:21
Dear Artur,

First of all I would like to appreciate for your excellent effort for this library. I need a favor from you to suggest me or give sample example to merge images using useBlender function. Quick response would be much appreciated. Thanks a ton in advance

Cheers
Amjad A.

  2. Re: Merging images for watermark   Reply   Report abuse  
Picture of Artur Graniszewski Artur Graniszewski - 2013-03-21 12:15:16 - In reply to message 1 from Amjad Ali
<?php

require_once('../gd2imaging.php');



$image1 = new Image('image1.png');
$image2 = new Image('image2.png');
$image1->blend($image2, new Point(0, 0), Blender::USE_LIGHTEN);
$image1->show();