Skip to content

😎 Generates placeholder images in the style of billboards from John Carpenter's movie 'They Live'.

Notifications You must be signed in to change notification settings

fabsrc/they-live-placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

They Live Placeholder

:sunglasses:

Generates placeholder images in the style of billboards from John Carpenter's movie They Live.

Requirements

  • GD with FreeType, JPEG and PNG libraries

Install

$ composer install

Start

$ php -S 0.0.0.0:3000 index.php

Usage

http://localhost:3000/{width}x{height}.{format}?text={text}
  • width: Width of the image.
  • height (optional): If omitted, a squared image will be created based on the specified width.
  • format (optional): png (default), gif or jpg are valid formats.
  • text (optional): If no text is specified, random slogans from the movie are used.

Examples

Example Image

http://localhost:3000/600x400

They Live Placeholder Example

Use with Apache

In order to use this script with an Apache server use a .htaccess file to redirect all requests to index.php.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

License

Licensed under the MIT License.

About

😎 Generates placeholder images in the style of billboards from John Carpenter's movie 'They Live'.

Topics

Resources

Stars

Watchers

Forks

Languages