Skip to Content
Author's profile photo Nigel James

SAP Inside Track Logo Generator: It’s back!

Planning an SAP Inside Track is an excellent thing that you can do in your local area.

One of the tools in your chest to enable you to do that for the last couple of year has been the SAP Inside Track logo generator.

This is just a simple script to create a consistent style of png banner image from a couple of simple inputs.

Earlier this year this script got swept up in an overzealous administrator (me) with the delete key.

I have now re-instated the script at

There are two things you have to add. Two get parameters to the query string.

  1. year
  2. city

As an example you might have an event running in Manchester this year so with one get call to

you can get an image like this:


Then you can download the image and load it everywhere you are promoting your event.

Now just as a move to protect myself against any future overzealous administration activities. Here is the source code for the script. Enjoy.

 * @author Nigel James
 * @email
 * @date   15 Apr 2013
 * Create an image for SAP Inside Track events with Year and City
function LoadPNG($pngName)
    /* Attempt to open */
    $im = @imagecreatefrompng($pngName);
    /* See if it failed */
        /* Create a blank image */
        $im  = imagecreatetruecolor(150, 30);
        $bgc = imagecolorallocate($im, 255, 255, 255);
        $tc  = imagecolorallocate($im, 0, 0, 0);
        imagefilledrectangle($im, 0, 0, 150, 30, $bgc);
        /* Output an error message */
        imagestring($im, 1, 5, 5, 'Error loading ' . $pngName, $tc);
    return $im;
} // LoadPNG
// set headers
header('Content-Type: image/png');
$logo = LoadPNG('sapitlogobase.png');
// get year and city validate and  sanitise
$_year = $_GET['year'];
$_city = $_GET['city'];
// year
$yearText = (int) $_year;
if ($yearText == '0') {
    $yearText = '';
// city - uppercase and sanitised
$cityText = htmlspecialchars(strtoupper($_city));   
// get the text on the image
$yearColour = imagecolorallocate($logo, 0x6b, 0x6b, 0x6b); // web #6b6B6B
$cityColour = imagecolorallocate($logo, 0xF0, 0xAB, 0x00); // web #F0AB00
$font = 'ArialBold.ttf';
//imagettftext ( resource $image , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text )
imagettftext($logo, 30, 0, 370, 35, $yearColour, $font, $yearText);
imagettftext($logo, 20, 0, 6, 60, $cityColour, $font, $cityText);

Assigned tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo DJ Adams
      DJ Adams

      Perfect timing, thanks Nigel. And good example! 🙂

      Author's profile photo Andy Silvey
      Andy Silvey

      Hi Nigel,

      seconded, great to have the logo generator back.


      Author's profile photo Former Member
      Former Member


      I think it doesnt work now. I can host it also if you send sapitlogobase.png.


      Author's profile photo Nigel James
      Nigel James
      Blog Post Author

      If you want to recreate the base logo - call the script with no parameters. The ArialBold.ttf is easily found from a google search.



      Author's profile photo Former Member
      Former Member

      Hi again,

      You can also access using this url:

      Author's profile photo Marcelo Ramos
      Marcelo Ramos

      Thanks Nigel,

      Great job, for sure I will use It for SAP Inside Track Sao Paulo.


      Author's profile photo Yariv Zur
      Yariv Zur


      Author's profile photo Moya Watson
      Moya Watson

      so cool.  I think Tammy Powlas you used this to generate our SAP Inside Track Silicon Valley logo?

      Author's profile photo Tammy Powlas
      Tammy Powlas

      Yes, I used Nigel's work to do it. 

      Author's profile photo Andreas Profitlich
      Andreas Profitlich

      Meanwhile the website seems to be hijacked, so take care with that link!