Dynamic Dummy Image Generator

by Russell Heimlich (@kingkool68)

600x400/000/fff

/ / . &

Documentation

Size

width x height

Colors

background color / text color

Image Formats

.gif, .jpg, .png

Custom Text

&text=Hello+World

The following characters need to be encoded using the UTF-8 Hex version in order to be rendered properly.

Character UTF-8 Hex Equivalent
+ 0x2B
# 0x23
% 0x25
& 0x26

You'll run into problems trying to manually enter a dimension as text if the numbers use the UTf-8 Hex values above, like &text=400x250. Use a multiplication symbol, × instead (not an x character) to get around this, &text=400×250.

If you need to use other unicode characters, look up their UTF-8 Hex version at http://www.fileformat.info/info/unicode/char/search.htm

Standard Image Sizes

Several standard dimensions are included in dummyimage.com including ad sizes and screen resolution sizes.

Keyword Shortcuts Dimensions Regular Expression
mediumrectangle medrect 300×250 ^(med)\w+(rec\w+)
squarepopup sqrpop 250×250 ^(s\w+pop)
verticalrectangle vertrec 240×400 ^(ver)\w+(rec)
largerectangle lrgrec 336×280 ^(large|lrg)(rec)
rectangle rec 180×150 ^(rec)
popunder pop 720×300 ^(pop)
fullbanner fullban 468×60 ^(f\w+ban)
halfbanner halfban 234×60 ^(h\w+ban)
microbar mibar 88×31 ^(m\w+bar)
button1 but1 120×90 ^(b\w+1)
button2 but2 120×60 ^(b\w+2)
verticalbanner vertban 120×240 ^(ver\w+ban)
squarebutton sqrbut 125×125 ^(s\w+but)
leaderboard leadbrd 728×90 ^(lea\w+rd)
wideskyscraper wiskyscrpr 160×600 ^(w\w+sk\w+r)
skyscraper skyscrpr 120×600 ^(sk\w+r)
halfpage hpge 300×600 ^(h\w+g)
Screen Standards
Keyword Dimensions
cga 320x200
qvga 320x240
vga 640x480
wvga 800x480
svga 800x480
wsvga 1024x600
xga 1024x768
wxga 1280x800
wsxga 1440x900
wuxga 1920x1200
wqxga 2560x1600
Video Standards
Keyword Dimensions
ntsc 720x480
pal 768x576
hd720 1280x720
hd1080 1920x1080

Flash Support

Dummyimage.com works with Flash applications.

Source Code on GitHub

https://github.com/kingkool68/dummyimage

Dummy Image is written in PHP and distributed freely under a MIT License.

Other Versions

Fakeimage
Ruby
Michael Dungan
ASP.net Dummy Image
ASP.net
Jess Tedder
Dynamic Dummy Image Generator for Django
Django/Python
Rolando Espinoza La fuente
Random Image Generator
Johan Thomsen
Dummy Image Generator Expression Engine Plugin
PHP/Expression Engine
tsiger
Dummy Image Bookmarklet
JavaScript
Robert Gomez
Ipsum Image
Python/Google App Engine
Dan Moore
Textmate Snippet
Textmate
Danny Smith
Forked Textmate Bundle (Forked version by Aziz Light)
Textmate
Kenneth Reitz
Dummyimages Drupal Module
PHP/Drupal
Derek Ahmedzai
DIG (Dynamic Image Generator)
PHP/MODx CMS
Brian Wente
Dummy image
PHP/Drupal
naxoc
[lorem] shortcode
PHP/WordPress
Per Soderlind
Dummy Image ( fr_dummy_image )
PHP/TYPO3
Robert Ferencek

About Russell Heimlich

I am Russell Heimlich (@kingkool68) and I like to design web pages, blog, and doodle around in JavaScript and PHP.

Contact

Still have questions or suggestions? Contact me.