Giter Site home page Giter Site logo

imgin-1's Introduction

#ImgIn

##What is ImgIn? ImgIn allows you to get a random image with your specified content search. It also has the capability to specify a size of image.

===

##Getting Started

###Installation Install ImgIn gem.

$ gem install imgin

###Usage

Require ImgIn at the top of your file.

require 'imgin'

Fetch one image URL.

Imgin::Image.get( **insert your string** )

Place the Imgin get command anywhere in your ruby code that you need an image url. Here's an example:

Imgin::Image.get("banana slug") # => "fc06.deviantart.net/fs71/i/2013/022/3/7/banana_slugs_by_hanakoheals-d5scksb.jpg"

An extra parameter can be added in order to obtain a specific size of image. Here's an example of that:

Imgin::Image.get("banana slug", "medium") # => "fc06.deviantart.net/fs71/i/2013/022/3/7/banana_slugs_by_hanakoheals-d5scksb.jpg"

There size options are icon, medium, large, and wallpaper.

The URL can be used for whatever case you might need it. It picks an image at random out of about 50 images that meet the search parameters you entered. So, you won't recieve the same image too many times if you would like to repeat the population of images. Also, the image generally will not be the same if the command is run again.

Here's what the above URL goes to(if you're curious): http://fc06.deviantart.net/fs71/i/2013/022/3/7/banana_slugs_by_hanakoheals-d5scksb.jpg

##Major Features

  • Enter your own search parameters
  • Specify the general image size

##Technology Stack

  • Ruby
  • (Nokogiri gem used for scraping yahoo images)

##Contributors

imgin-1's People

Contributors

ladymozzarella avatar masononeal avatar thefenry avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.