2013-02-08 6 views

답변

3

이것은 내가 사용하는 PHP 버전입니다. 또한 사용중인 플랫폼 등을 말하지 않아도됩니다. 이렇게하면 이미지 아래에 lable이 추가됩니다. 원하는대로 생각하면됩니다. 두 번째 예제에서 원하는 경우 워터 마크를 사용할 수 있습니다. 양각 텍스트를 입력

enter image description here

// Get the size of the image 
$size = getimagesize("$input14"); 

// Size for watermark - scaled to fit the image 
$width = $size[0]*.9; 
$height = $size[0]*.25; 

// Create an image with the text 
$cmd = "-size {$width}x{$height} -background none -font Utopia-bold ". 
" -fill white -gravity center caption:\"Copyright of Rubblewebs\" ". 
" -shade 240x40"; 

exec("convert $cmd font.png "); 

// Add the text image to the photo 
exec("composite -watermark 30% -gravity south font.png $input14 embossed.png"); 

// Delete the tempory image 
unlink ('font.png'); 
+0

응답 없음으로

enter image description here

exec("montage -geometry +0+0 -background skyblue -label \"Sunflower\" original.jpg output.jpg"); 

워터 마크 다음 @adamsilver? – Bonzo

+0

지연되어 죄송합니다. –

관련 문제