Skip to content

Dynamic Dummy Image Generator — as seen on DummyImage.com

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-RobotoMono
Notifications You must be signed in to change notification settings

FabianBeiner/PHP-Dummy-Image-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Dummy Image Generator
— as seen on DummyImage.com

This script enables you to create placeholder images in a breeze.

Usage

Just link to the image.php file via the HTML <img> element. For example, <img src ="image.php?size=500x250&type=png&bg=f00&color=ffffff&text=Dummy" alt="Dummy Image"> would create a PNG image with red (#f00) background, white (#ffffff) text, the word “Dummy” written on it and a size of 500px width, 250px height.

This script handles the following parameters, where basically all of them are optional.

  • size *(default: 640x480) — Examples:
    500x250 (= 500px width, 250px height)
    500 (= 500px square) *
  • type (default: png) — Examples:
    png (= PNG image)
    gif (= GIF image)
    jpeg or jpg (= JPEG image)
  • bg (default: CC0099) — Examples:
    f00 (= #FF0000 as background color)
    FF0855 (= #FF0855 as background color)
  • color (default: FFFFFF) — Examples:
    000 (= #000000 as font color)
    FFFFFF (= #FFFFFF as font color)
  • text (default: {WidthOfTheImage}×{HightOfTheImage}) — Examples:
    Lore Ipsum (= Image has Lore Ipsum written on it)

License

Please see the license file for more information.

Credits

Original idea by Russel Heimlich. When I first published this script, DummyImage.com was not Open Source, so I had to write a small script to replace the function on my own server.

About

Dynamic Dummy Image Generator — as seen on DummyImage.com

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-RobotoMono

Stars

Watchers

Forks

Packages

No packages published

Languages