3d watermark - how to achieve?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
akapap

3d watermark - how to achieve?

Post by akapap »

Hi,

how to achieve sth like that with imagemagick:
Image

default option watermark only overlay logo. I'd like to make watermark more swelling.

Best regards.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: 3d watermark - how to achieve?

Post by Bonzo »

Modify this code:

Code: Select all

<?php

$size = getimagesize("input.jpg");

// Size for watermark
$width = $size[0]*.9;
$height = $size[0]*.25;

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

echo $cmd;

// Create the watermark
exec("convert $cmd font.png ");

exec("composite -watermark 30% -gravity south font.png input.jpg embossed.png");

?>
I use php and this code automaticaly resizes the watermark to fit the image size but you should be able to modify it to what you want.

The code creates an image with the text then overlays it over the image.

Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 3d watermark - how to achieve?

Post by fmw42 »

see my script, bumptext at the link below
Post Reply