• 0

Auto Generated Signatures[IPB]


Question

7 answers to this question

Recommended Posts

  • 0

You'll want to read up on Image Processing and GD as that's what's used for the sigs. It's not specific to IPB although the devs have coded it so that the IPB username is pulled into the array so it generates on the image.

Don't forget I helped :p

The original idea came up when people kept request staff signatures, so I thought i'd make a quick generator to do so. It eventually turned into what we have today, and it was developed by myself, Dave, Timan, Rob, and a couple of others :)

There isn't a hack or open source code for it, but it does use GD to overlay the text onto the image and merge them.

Link to comment
Share on other sites

  • 0

You'll want to read up on Image Processing and GD as that's what's used for the sigs. It's not specific to IPB although the devs have coded it so that the IPB username is pulled into the array so it generates on the image.

Sure I will read the page regarding image processing and GD. Thanks for the letting me know.

Don't forget I helped :p

The original idea came up when people kept request staff signatures, so I thought i'd make a quick generator to do so. It eventually turned into what we have today, and it was developed by myself, Dave, Timan, Rob, and a couple of others :)

There isn't a hack or open source code for it, but it does use GD to overlay the text onto the image and merge them.

It sure is a great script that you have made. But I want to know couple of things how did you manage to get the user id and their ranks to the signature? Did you link the SQL database or something else? Is there a sample code or something to take a look at when you decided to write this code for the generator?

Link to comment
Share on other sites

  • 0

It sure is a great script that you have made. But I want to know couple of things how did you manage to get the user id and their ranks to the signature? Did you link the SQL database or something else? Is there a sample code or something to take a look at when you decided to write this code for the generator?

Yes. It takes the users rank (ID number) and their Username from a SQL database, which then picks the corresponding signature, and overlays the image onto it :)

Just make sure you add code to refresh the image when need be (not all the time) in case their username or rank changes.

Link to comment
Share on other sites

  • 0

Yes. It takes the users rank (ID number) and their Username from a SQL database, which then picks the corresponding signature, and overlays the image onto it :)

Just make sure you add code to refresh the image when need be (not all the time) in case their username or rank changes.

Oh okay! But the basic image which format is used for it for it to be editable? Its just like carrying out an action for a bunch of photos in photoshop right?

Link to comment
Share on other sites

  • 0

It's at a lower level than that.

In my old code (done in PHP), each backing badge was stored as a PNG file, which was loaded using the GD library. Then I drew the text* over the image and output that.

* It was slightly more complicated actually, because it needed a dynamic drop shadow, so it involved a temporary image surface and a convolution function for the blurring.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.