Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2004-08-25 15:03:08
- nednieuws
- Member
- From: The Home of Heineken
- Registered: 2004-08-21
- Posts: 14
Plug-in to automatically watermark uploaded images.
Is such a beast available or does someone have a clue on how to do this?
Regards, Charles.
Offline
Re: Plug-in to automatically watermark uploaded images.
I do believe it can be done using the GD library, or if not, ImageMagick. You might look into severely modding the automatic thumbnail plugin, but it’s beyond my ability to help. I was never any good at GD/ImageMagick.
Listen to Kenneth
Offline
Re: Plug-in to automatically watermark uploaded images.
this is a function I used to use for my old forum.
<pre>
function mergePix($sourcefile,$insertfile, $pos=0,$transition=50)
{
}
</pre>
Offline
#4 2004-08-25 22:33:17
- nednieuws
- Member
- From: The Home of Heineken
- Registered: 2004-08-21
- Posts: 14
Re: Plug-in to automatically watermark uploaded images.
There you go, Kenneth ;)
Or, is there a place where there’s documentation about how to write a plug-in in hand-holding mode?
Tom, many, many thanks! As this doesn’t use the ImageMagick library, can you say something about the quality? I read everywhere that wrt resizing (ie. thumbnailing) ImageMagick gives much better results than NetPBM or PHP’s built-in lib. Don’t know if this “wisdom” applies to merging of pictures, though …
Last edited by nednieuws (2004-08-25 22:43:35)
Regards, Charles.
Offline
Re: Plug-in to automatically watermark uploaded images.
> nednieuws wrote:
> There you go, Kenneth ;)
> Or, is there a place where there’s documentation about how to write a > plug-in in hand-holding mode?
> Tom, many, many thanks! As this doesn’t use the ImageMagick
> library, can you say something about the quality? I read everywhere
> that wrt resizing (ie. thumbnailing) ImageMagick gives much better
> results than NetPBM or PHP’s built-in lib. Don’t know if this “wisdom”
> applies to merging of pictures, though …
When using a lossy format (JPEG is the most likely one), you’ll have to reencode the file, so you will lose information. When using the GD you’ll have to put with the bad JPEG encoding stuff.
This reminds me to release a new version of my automatic thumbnail’s, once I do that it will be pretty easy for others to add on features.
Offline
#6 2004-08-31 08:48:34
- nednieuws
- Member
- From: The Home of Heineken
- Registered: 2004-08-21
- Posts: 14
Re: Plug-in to automatically watermark uploaded images.
Sophia: Well, you don’t. Want I want to use it for is to automatically watermark images that users upload. But this has two problems:
- You need to have a plugin like the poll (voting) plugin, which seems hard to do (the creator of that plugin said that it is “extensive”).
- If it needs to be integrated with the admin interface enabling only people with privileges to do so it seems impossible as TXP doesn’t allow for admin plugins yet.
However, I’ve started a thread in the Feature Request forum which could use more votes :).
Last edited by nednieuws (2004-08-31 08:49:17)
Regards, Charles.
Offline
Re: Plug-in to automatically watermark uploaded images.
you should be able to modify the automatic thumbnails plugin/hack to use this auto-watermark code.
Listen to Kenneth
Offline