class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
$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 );
I found a solution, fisrt, attach the watermark1, second, take this image and attach the other watermark.
:)
Thx...solved :)