Image watermark class/function

Got an idea for a tutorial ? Share it here.
Post Reply
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Image watermark class/function

Post by DomC »

First off,
I don't think you have made this yet but if you have sorry.

I was wondering if you could create a class or function which adds a predifined watermark to an image that is passed to it.
I hope you understand what I mean but if not I'll try and rephrase it.
What do you think?
Dom
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: Image watermark class/function

Post by bowersbros »

viewtopic.php?f=23&t=29

The code for what you want is there, if you want it explained just ask which parts you don't understand and ill try my best to explain it :)
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Image watermark class/function

Post by DomC »

Oops - thanks a lot, I'll check it out
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Image watermark class/function

Post by jacek »

I might do this anyway, it would be pretty easy :D
Image
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Image watermark class/function

Post by DomC »

Ah cool
I am looking forward to it, if you do decide to go ahead and do it.
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Image watermark class/function

Post by DomC »

You made it! Thanks a lot - I'm off to watch them
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Image watermark class/function

Post by jacek »

DomC wrote:You made it! Thanks a lot - I'm off to watch them

I did :D

Not exactly a watermark but the principle is the same.
Image
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: Image watermark class/function

Post by bowersbros »

all thats needed to make it a true watermark is a transparent image (GIF or PNG)

So.. i'd call it a watermark if im honest :P
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Image watermark class/function

Post by DomC »

I'd agree and just move the image to centre or bottom of the picture and Voila!
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Image watermark class/function

Post by jacek »

DomC wrote:I'd agree and just move the image to centre or bottom of the picture and Voila!

Centre or bottom require knowing the width and height of the main image, which is why I did top left :D
Image
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: Image watermark class/function

Post by bowersbros »

jacek wrote:
DomC wrote:I'd agree and just move the image to centre or bottom of the picture and Voila!

Centre or bottom require knowing the width and height of the main image, which is why I did top left :D


Or you could tile it ;)
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Image watermark class/function

Post by DomC »

bowersbros wrote:
jacek wrote:
DomC wrote:I'd agree and just move the image to centre or bottom of the picture and Voila!

Centre or bottom require knowing the width and height of the main image, which is why I did top left :D


Or you could tile it ;)


Good point - I did not think of that! I'll have to play around with it when I get back home on Friday!
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
Post Reply