Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Placeholder images. Generated via the magic of PyPNG!
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
LICENSE.markdown
README.markdown
placeholder.py

README.markdown

PyPlaceholder

When mocking up layouts, I want to ensure that the HTML I'm building wraps real images in the correct aspect ratios. I also want to be able to fiddle with the sizes without getting distracted by squashed/stretched faces. I'd like something akin to a visual "Lorem ipsum...", that says "Hey! An image is going to go here! At some point!" Importantly for some future work, I want these images to be autogenerated.

So, PyPlaceholder. Using PyPNG as a base, it generates s very simple image that you can stick into a layout to hold the place of images to come.

Usage: placeholders.py [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --verbose             Verbose mode
  -o OUT, --output=OUT  Output file
  --background=RRGGBB   Background color in hex (`RRGGBB`) format
  --foreground=RRGGBB   Foreground color in hex (`RRGGBB`) format
  --width=WIDTH         Width of placeholder
  --height=HEIGHT       Height of placeholder
  --no-border           Suppress rendering of border around the placeholder
                        image.
Something went wrong with that request. Please try again.