Skip to content

michaelchadwick/imgen

Repository files navigation

Imgen

Gem Version

Imgen is a quick and simple way to create simple, placeholder-type images. One line can make 1, 5, or 100 PNGs, perfect for testing out any project that needs imagery.

Installation

Add this line to your application's Gemfile:

gem 'imgen'

And then execute:

$ bundle

Or install it yourself as:

$ gem install imgen

Usage

By default, simply running imgen will create a single 100x100 PNG, using a randomly-selected color.

The resulting image will look something like one of the following:

Imgen solid example 1 Imgen solid example 2 Imgen solid example 3

You can change width, height, image format, and the quantity of images generated with switches.

imgen -m texture -w 200 -h 300 -f jpg -q 3 - Create 3 200x300 JPGs of randomly-chosen textured color.

Imgen texture example 1 Imgen texture example 2 Imgen texture example 3

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/michaelchadwick/imgen.

License

The gem is available as open source under the terms of the MIT License.

About

Use command line Ruby to create simple images

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages