Reply to Re: Add TWO watermarks in the same image

Re: Add TWO watermarks in the same image new!
by Paulo, 16 years, 8 months ago
It no function, because the code take the same image and put other watermark.

I found a solution, fisrt, attach the watermark1, second, take this image and attach the other watermark.

:)
$ImagemTemp     = $PastaTemp.$imagem;

$ImgMod = new Upload($ImagemCompleta);
$ImgMod->file_auto_rename = false;
$ImgMod->file_overwrite = true;
	
if ( file_exists($Marca1) == true ) {
  $ImgMod->image_watermark = $Marca1;
  $ImgMod->image_watermark_position = 'T';
}	
 
$ImgMod->process( $PastaTemp );
 
$ImgMod = new Upload($ImagemTemp);
$ImgMod->file_auto_rename = false;
$ImgMod->file_overwrite = true;
 
if ( file_exists($Marca2) == true ) {
  $ImgMod->image_watermark = $Marca2;
  $ImgMod->image_watermark_position = 'BR';
}	
 
$ImgMod->process( $PastaTemp );

Thx...solved :)Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important