Omg Image
Generate PNG previews for HTML snippets (html/css/js). Any complexity
No ratings yet
- Gem
- omg_image
- Repository
- igorkasyanchuk/omg_image
- License
- MIT
- Stars
- 36
- Added
- August 14, 2026
About
Generate PNG previews for HTML snippets (html/css/js). Any complexity.
Let's start with sample of what this gem can do (below are the images of generated previews):
What you get
- add this gem to Gemfile -
gem "omg_image" - make sure you have chrome installed (
google-chrome --version) - execute
rails g omgin app - execute
rake db:migrate - edit sample template
app/omg/simple.html.erb - open any view, for example you have
app/views/home/index.html.erband put:
Installing it
ruby
# Gemfile
gem "omg_image"
Details
36 stars on GitHub · MIT licensed · maintained by igorkasyanchuk. Source: https://github.com/igorkasyanchuk/omg_image
Discussion (0)
Sign in to join the discussion.
No comments yet.