Photomontage
Photomontage is a ruby gem that accepts search keywords provided by the user, fetches images that are relevant to the words, and collates them into a collage.
Installation
Add this line to your application's Gemfile:
gem 'photomontage'
And then execute:
$ bundle
Or install it yourself as:
$ gem install photomontage
Installation dependencies
Ensure you have ImageMagick (https://www.imagemagick.org/script/binary-releases.php) installed in your system.
Troubleshooting installation of rmagick gem (https://github.com/rmagick/rmagick/#user-content-wrong)
Usage
Open Ruby interactive shell:
$ irb
Require photomontage gem:
> require 'photomontage'
Build your collage!
> Photomontage.begin
To view the collage image, exit from irb:
> exit
$ open images/file_name.jpg
Contributing
- Fork it ( https://github.com/aishwarya923/photomontage/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request