J'ai un problème avec la position de filigrane que je veux régler la position de centre-gauche, Comment puis-je configurer dynamiquement ici la fonction de filigranePosition Watermark Problème
function ($location) {
$watermark = imagecreatefromgif("wm.gif");
$watermark_width = imagesx($watermark);
$watermark_height = imagesy($watermark);
$image = imagecreatetruecolor($watermark_width, $watermark_height);
$image = imagecreatefromjpeg($location);
$size = getimagesize($location);
$pos_x = $size[0] - $watermark_width - 690;
$pos_y = $size[1] - $watermark_height - 250;
imagecopymerge($image, $watermark, $pos_x, $pos_y, 0, 0, $watermark_width, $watermark_height, 100);
imagejpeg($image, $location);
imagedestroy($image);
imagedestroy($watermark);
}
Quand vous dites centre-gauche - à quelle distance gauche, plein? Quels sont les deux nombres absolus à l'aide de? – Orbling
@Orbling oui complètement à gauche et au centre – Chris
@Orbling comprendre? – Chris