yuzutas0 / word2mosimg

convert form keyword to mosaic image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the script to convert form keyword to mosaic image.

Output image like...

all of mosaic image resized

And Detail is...

detail of mosaic image resized

workflow

  1. you input the keyword and the image.
  2. this script finds some images from google-images with the keyword.
  3. this script thinks the combination about 10,000 images.
  4. this script makes a mosaic image looks like your input image, using by 10,000 images about keyword.
  5. you can get the mosaic image.

Usage


$ cd [this script directory]

$ bundle install --path vendor/bundle --binstubs bundle_bin

$ cp [target file] [this script directory]/assets/targets/ # use .jpg file

$ vim main.rb # rewrite keywords for search

$ bundle exec ruby main.rb

Attention

WIP...

Welcome to pull request

WIP...

  • please git commit after bundle exec "rubocop --auto-gen-config" and bundle exec "rubocop --auto-correct"

About

convert form keyword to mosaic image


Languages

Language:HTML 89.2%Language:Ruby 10.8%