Skip to content

A library with images for your seed-scripts on local env.

License

Notifications You must be signed in to change notification settings

lkneqwl/local_images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local_images

Gem Version

Ruby library which contains some images for your seed.rb scripts. You can easily get location of random image from your local machine (images are inside gem) and feed it to your seed.rb.

Motivation: preventing downloading images from the web and using them from '/public' folder on Ruby on Rails app each time when start new project from scratch. I hope it will save someone's time.

Install

gem install local_images

Usage

require 'local_images'

LocalImages::Faces.local_link("param")

Example

LocalImages::Faces.local_link("humans")

 => "/Users/user/.rvm/gems/ruby-2.6.5/gems/local_images-0.1.0/lib/images/faces/humans/007.jpg"

Available params: humans, cats, dogs.

Currently lib contains 10 images for each param.

Images from Unsplash.

Photo Credits

Sara Kurfeß

Natalie Scott

Roberto Nickson

Graham Holtshausen

Fredrik Öhlander

Erda Estremera

Ryan Walton

Baptist Standaert

Charles Deluvio

Martin Moreno

Eduard Delputte

Linnea Sandbakk

Kim Davies

Andrew Umansky

Rana Sawalha

Zoë Gayah Jonker

Marko Blažević

Erik-Jan Leusink

Tran Mau Tri Tam

Jae Park

Marcos Paulo Prado

Leon Ell'

Juan Encalada

Aiony Haust

Joseph Greve

Olasz András

Vinicius Amano

Austin Wade

Max Ilienerwise

Jakob Owens

TODO

Add Cover images

License

MIT

About

A library with images for your seed-scripts on local env.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published