https://github.com/norm/image-placeholder
Placeholder image generation
https://github.com/norm/image-placeholder
Last synced: about 1 year ago
JSON representation
Placeholder image generation
- Host: GitHub
- URL: https://github.com/norm/image-placeholder
- Owner: norm
- Created: 2010-10-29T10:09:11.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-11-02T23:23:32.000Z (over 15 years ago)
- Last Synced: 2025-03-23T20:04:54.415Z (over 1 year ago)
- Language: Perl
- Homepage: http://ima.gs/
- Size: 121 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Image Placeholder
=================
A library, command-line script and website for generating placeholder images.
See [ima.gs][] for the online version that uses this code.
p5-Image-Placeholder
--------------------
Perl library, available from [CPAN][]. Comes with a command-line script, used
like so:
placeholder --background-color=999 400x300 > test.png
To install this, you will need to be running perl (at least 5.10), and to
install it either using the standard `cpan` command, or better yet [cpanm][]
like so:
cpanm --sudo Image::Placeholder
Deploying as a website
----------------------
If you want to run your own installation of this:
* inside your corporate firewall so as not to leak HTTP_REFERER values out into the internet
* within a [fort][] or other structure without internet access
* on your laptop
* as another competitor in the highly lucrative online placeholder market
you will need to be running perl (at least 5.10), and to install a bunch
of modules from cpan. I'd recommend using [cpanm][], like so:
cpanm --sudo \
Modern::Perl \
GD \
Plack \
Plack::Middleware::Expires \
Moose \
MooseX::FollowPBP \
MooseX::Method::Signatures
Once those are installed, clone this repository, `cd` into it and run the
command:
plackup -Ilib placeholder.psgi
which will run it on port 5000.
Check the [Plack][] website for more information on the various ways of
deploying Plack powered websites.
[ima.gs]: http://ima.gs/
[CPAN]: http://search.cpan.org/dist/Image-Placeholder/
[fort]: http://devfort.com/
[cpanm]: http://cpanmin.us/
[Plack]: http://plackperl.org/