Sha256: 2f12ac94bc2b9b487cd8f4ddf118c3a0efe2c02c2c6c0f9f608c2879abba9b37

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

# ImageMosaic
[![Build Status](https://travis-ci.org/Dannyguk/image_mosaic.svg?branch=master)](https://travis-ci.org/Dannyguk/image_mosaic)

ImageMosaic takes an array of up to 20 images and returns a collage of the images in a grid format.

Each image in the collage is currently resized to 200x200 pixels. The image it returns in 1000x1000 pixels.

## Installation

ImageMosaic requires ImageMagick to be installed.

OSX

    $ brew install imagemagick

Linux

    $ sudo apt-get install imagemagick

Add this line to your application's Gemfile:

```ruby
gem 'image_mosaic'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install image_mosaic

## Usage

Create an image from an array of image URLs. The resulting image is saved to the local file system.

```ruby
images =  (0..20).map { 'https://unsplash.it/200/200?random' }
mosaic = ImageMosaic::Construct.new(images)
mosaic.save
```

## Contributing

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


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
image_mosaic-0.1.1 README.md
image_mosaic-0.1.0 README.md