This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Watermark


avatar
capslock 0
From: -
Watermark

Is it possible to add a watermark to uploaded image using imagemagick?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Watermark
avatar
Administrator
1340
From: Vienna, Austria
Watermark

I did a search on Google and it seems quite easily:
http://www.cit.gu.edu.au/~anthony/graphics/imagick/annotating/

Theoretically this should work:

Open cadmin/mod_news.php and find:

@chmod ("../images/news/$upfile", 0777); 

Then add:

exec("/usr/bin/montage -geometry +0+0 -background skyblue -label "Your copyright here"  ../images/news/$upfile   ../images/news/$upfile");

You may need to replace ../images/news with the full path to your image directory (for example: /var/www/html/images/news).

Important: This is completely untested because I do not have ImageMagick installed on my test server and there are no plans to support it in the near future due to it's PHP Safe Mode limitations.
1 Re: Watermark
avatar
OP 0
From: -
Watermark

is there a way to have a text watermarked on images using imagemagick ?
1 Re: Watermark
avatar
Administrator
1340
From: Vienna, Austria
Watermark

The upload function is not related to the watermark function. Both are two different functions.
1 Re: Watermark
avatar
OP 0
From: -
Watermark

but where is the function that upload images?
1 Re: Watermark
avatar
Administrator
1340
From: Vienna, Austria
Watermark

No, not in the current version, but I will look if I could add this in version 2.0

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.