{"id":37801357,"url":"https://github.com/nitschmann/lorempixel_rails","last_synced_at":"2026-01-16T15:26:31.534Z","repository":{"id":12821158,"uuid":"15496320","full_name":"nitschmann/lorempixel_rails","owner":"nitschmann","description":"Custom image placeholders for Ruby on Rails 4 views","archived":false,"fork":false,"pushed_at":"2014-01-16T08:59:49.000Z","size":266,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T22:44:19.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/lorempixel_rails","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitschmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-28T17:39:33.000Z","updated_at":"2014-01-16T09:00:18.000Z","dependencies_parsed_at":"2022-09-07T19:25:13.351Z","dependency_job_id":null,"html_url":"https://github.com/nitschmann/lorempixel_rails","commit_stats":null,"previous_names":["fnitschmann/lorempixel_rails"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nitschmann/lorempixel_rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Florempixel_rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Florempixel_rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Florempixel_rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Florempixel_rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitschmann","download_url":"https://codeload.github.com/nitschmann/lorempixel_rails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Florempixel_rails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T15:26:30.778Z","updated_at":"2026-01-16T15:26:31.526Z","avatar_url":"https://github.com/nitschmann.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lorempixel_rails\n\n\n###### Version 1.0.0\n\n\nlorempixel_rails is a Ruby Gem for custom image placeholders for views in [Ruby on Rails](http://rubyonrails.org/). The images are provided by [lorempixel](http://lorempixel.com/).\n\n## Requirements\n\n\nRuby on Rails ( ```\u003e= Version 4.0.0``` )\n\n## Installation\n\n\nUsage with Gemfile:\n\n``` gem \"lorempixel_rails\" ```\n\n``` $ bundle ```\n\n\nInstallation by hand:\n\n``` gem install lorempixel_rails ```\n\n## Usage\n\n\nThe Gem offers a simple helper method named ``` lorempixel_img_tag ``` which can be used, similar to the standard ``` image_tag ``` helper, in all Ruby on Rails views.\n\nFollowing things can be configured and change the shape of the images:  \n\n* The size (height and width)\n* Colored [default] or gray images\n* Category (abstract,animals, business, cats, city, food, nightlife, fashion, people, nature, sports, technics \u0026 transport) [default: nature] (http://lorempixel.com/images.php)\n* Text can be added\n\nFor more information about formation and options for lorempixel images check: http://lorempixel.com/\n\n#### Default and maximum image sizes:\n\nAll pictures have some default and maximums. These are:\n\n* 1920px as maximum for heigth and width of images\n* 100px as default value for height and width\n\n\n\nDefault picture without any options:\n\n``` \u003c%= lorempixel_img_tag %\u003e ```\n\n\nPicture with size of 500x300 and without category:\n\n``` \u003c%= lorempixel_img_tag(:size =\u003e {:width =\u003e 500, :height =\u003e 300}) %\u003e ```\n\n\nPicture with size of 600x280 and with type 'technics':\n\n``` \u003c%= lorempixel_img_tag(:size =\u003e {:width =\u003e 600, :height =\u003e 280}, :type =\u003e \"technics\") %\u003e ```\n\nPicture with random type:\n\n``` \u003c%= lorempixel_img_tag(:size =\u003e {:width =\u003e 600, :height =\u003e 320}, :type =\u003e \"random\") %\u003e ```\n\n\nPicture with text:\n\n``` \u003c%=\n  lorempixel_img_tag(\n    :size =\u003e {:width =\u003e 500, :height =\u003e 200},\n    :type =\u003e \"people\",\n    :text =\u003e \"Hello People\"\n  )\n%\u003e\n```\n\n## Patches \u0026 Forks\n\n\n##### Future\n\n* Specific category list pictures\n* Support Caching\n\n\n## License \n\nSee `LICENSE` file\n\n\u003e Copyright \u0026copy; 2014 Florian Nitschmann (f.nitschmann@googlemail.com)\n\n\n\n \n  \n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitschmann%2Florempixel_rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitschmann%2Florempixel_rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitschmann%2Florempixel_rails/lists"}