Project

imgen

0.0
Low commit activity in last 3 years
No release in over a year
Create an image of a specific height and width using Magick
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1
>= 0
~> 12.3.3
>= 0

Runtime

 Project Readme

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.