Bonjour,
J'ai besoin d'aide help me please :(
Je voudrais apposer un filigrane sur les images, comment faire en sorte de garder la transparence des images png sur mon site ? Ci-dessous le code.
Merci.
J'ai besoin d'aide help me please :(
Je voudrais apposer un filigrane sur les images, comment faire en sorte de garder la transparence des images png sur mon site ? Ci-dessous le code.
Merci.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// wrapper.php
// Path the the requested file
$path = $_SERVER['DOCUMENT_ROOT'].$_SERVER['REQUEST_URI'];
$image = imagecreatefromstring(file_get_contents($path));
$w = imagesx($image);
$h = imagesy($image);
$watermark = imagecreatefrompng('watermark.png');
$ww = imagesx($watermark);
$wh = imagesy($watermark);
imagecopy($image, $watermark, $w-$ww, $h-$wh, 0, 0, $ww, $wh);
// Send the image
header('Content-type: image/jpeg');
imagejpeg($image);
exit();
?>
I noticed that it's hard to find your website in google, i found it on 26th spot, you should get some quality backlinks to rank it in google and increase traffic. I had the same problem with my blog, your should search in google for - k2 seo services - it helped me a lot
RépondreSupprimer