Skip to content

bartvm/tedx-logo-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TEDx logo creator

This PHP script generates TEDx logos, with the following options:

  • White on black, or black on white
  • Optional transparent background (PNG only)
  • One- or two-line tagline
  • Event name on same line or separate line
  • Maximum height and/or maximum width
  • Custom clear space around the logo
  • Generate square images
  • Export to PNG or JPEG

The script is currently hosted at http://bartvanmerrienboer.nl/tedxlogo/

GET HTTP requests

The script can either be used with the provided form (index.php) or images can be generated directly using a GET request to the script (logo.php) with the following parameters:

Parameter Required/optional Value Comments
eventname Required string URL encoded
color Required black or white Color of the letters; not the background.
transparency Optional true or false
tagline Required 1 or 2 1 for a one-line tagline, 2 for the two-line version
eventline Required 1 or 2 1 for the event name on the same line, 2 for on a separate line
maxwidth Optional* numeric Maximum width of the image in pixels, must be positive.
maxheight Optional* numeric Maximum height of the image in pixels, must be positive.
border Required numeric Clear space around the logo in pixels, must be non-negative.
square Optional true or false
format Required png32 or jpeg JPEG can only be chosen without a transparent background.

* Either maxwidth or maxheight must be set, or both.

Example

http://bartvanmerrienboer.nl/tedxlogo/logo.php?eventname=Warwick&color=white&tagline=2&eventline=2&maxwidth=500&border=10&square=true&format=png32

Working

The script uses SVG files, which are based on the EPS files provided by TED. Note that all shapes of the original EPS have been thinned by 0.5 points because ImageMagick's SVG rasterization produces fairly thick edges. SimpleXML and XSLT are used to edit the SVG files before using the ImageMagick library to create the images.

Requirements

Credits

This script was inspired by Yongho Shin's and Brian Alexander's PHP script (http://www.tedx-sandiego.com/creator/).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages