Giter VIP home page Giter VIP logo

php-dummy-image-generator's Introduction

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.

php-dummy-image-generator's People

Contributors

fabianbeiner avatar

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.