2013-06-25 1 views

답변

1

워터 마크는 이미지 일 수 있습니다. 한 가지 할 수있는 것은 PhotoShop (또는 다른 이미지 편집 프로그램)의 텍스트 인 투명한 PNG 이미지를 만들고이를 워터 마크 이미지로 사용하는 것입니다.

+0

답장을 보내 주셔서 감사합니다. – Arun

0

당신은 스크립트와 .htaccess 파일을 사용하여 동적 워터 마크를 설정할 수 있습니다. png 이미지 (불투명하거나 투명 할 수 있음)를 만들어야합니다. 예를 들어 watermark.png라고 부릅니다.

<?php 
$text="Whatever text you want"; 
$im = imagecreate($imagewidth, 50); 
$bg = imagecolorallocate($im, 200, 200, 200); 
$textcolor = imagecolorallocate($im, 0, 0, 0); 

// Write the string at the top left 
imagestring($im, 5, 5, 3, $text, $textcolor); 

// Output the image 
header('Content-type: image/png',true,200); 

imagepng($im); 
imagedestroy($im); 
?> 

안전 파일 예를 들어 watermark.php : 는 다음과 같은 스크립트를 작성합니다. 다음에,이 JWplayer에서 작동하게하기 위해, 당신은 기입 :

RewriteEngine On 
RewriteBase/
RewriteRule ^(.*)watermark.png$ watermark.php [L] 
:

logo: { 
    file: 'watermark.png', 
    link: 'http://example.com' 
}, 

는 그 다음 .htacces가 자동으로 대신 JWplayer의 watermark.png의 스크립트를로드하기 위해이 같은 파일을 생성

도움이 되었기를 바랍니다.

관련 문제