Giter Club home page Giter Club logo

dynamic-email's Introduction

Dynamic Gif generator

This is essentially a fork of Alex Ilhan's Email Countdown repository which he writes about here, with a few key differences:

  • Built for use with an API, instead of time
    • Depends on an array of 24 different numbers, value comes by passing the current hour as the key
    • It counts the difference between two numbers.
  • Outputs a gif to the attached folder instead of generating one in browser
  • Different style text (white and outlined)

Getting started

First, the whole things runs off of php so be sure to run things through a local server, like MAMP. Also, you'll want to replace background-3.png with your desired background image. Below are a few lines you'll want to look into before getting started.

  • 61: Font file - upload your own font file to be used here depending on which font you want
  • 56-63: Font positioning and style - created centered white outlined text, modify depending on image preferences
  • 39-42: Simply a sample array of data, modify as necessary

If using an API:

  • 22-34: Uncomment and modify url based on API
  • 38-42: uncomment line 38 and commment out sample data in 39-42

Additional documention

For any additiaonl info, please reference the Email Coundown repo mentioned above, or Alex's writeup, also listed above.

Disclaimer

I am by no means a php expert, so I'm 100% positive, there's a better way to do this, this is what got the job done for me.

dynamic-email's People

Stargazers

 avatar Brandy Bradham avatar

Watchers

James Cloos avatar Hans Engebretsen avatar

Forkers

lingcarzy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.