All Projects β†’ mgrachev β†’ Gastly

mgrachev / Gastly

Licence: mit
πŸ‘» Create screenshots or previews of web pages

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Gastly

screenshot.py
Taking a screenshot of a webpage.
Stars: ✭ 49 (-44.94%)
Mutual labels:  screenshot, phantomjs
Argus Eyes
A lightweight commandline tool for visual regression testing of UI components.
Stars: ✭ 158 (+77.53%)
Mutual labels:  screenshot, phantomjs
siteshooter
πŸ“· Automate full website screenshots and PDF generation with multiple viewport support.
Stars: ✭ 63 (-29.21%)
Mutual labels:  screenshot, phantomjs
Screenshot Stream
Capture screenshot of a website and return it as a stream
Stars: ✭ 228 (+156.18%)
Mutual labels:  screenshot, phantomjs
Browsershot
Convert HTML to an image, PDF or string
Stars: ✭ 3,526 (+3861.8%)
Mutual labels:  screenshot, phantomjs
Imgursniper
πŸ“· A quick and easy Image, Screenshot and Screen recording sharing tool
Stars: ✭ 69 (-22.47%)
Mutual labels:  screenshot
Sharexin
ShareX for Linux and BSD
Stars: ✭ 79 (-11.24%)
Mutual labels:  screenshot
Gulp Mocha Phantomjs
run client-side Mocha tests with PhantomJS
Stars: ✭ 67 (-24.72%)
Mutual labels:  phantomjs
Page2image
πŸ“· page2image is a npm package for taking screenshots which also provides CLI command
Stars: ✭ 66 (-25.84%)
Mutual labels:  screenshot
Karma Webpack Example
Karma + Webpack + Mocha + Chai + Istanbul
Stars: ✭ 88 (-1.12%)
Mutual labels:  phantomjs
Go Stare
A fast & light web screenshot without headless browser but Chrome DevTools Protocol!
Stars: ✭ 87 (-2.25%)
Mutual labels:  screenshot
Pokepinball
Disassembly of PokΓ©mon Pinball
Stars: ✭ 77 (-13.48%)
Mutual labels:  pokemon
Textshot
Python tool for grabbing text via screenshot
Stars: ✭ 1,163 (+1206.74%)
Mutual labels:  screenshot
Blackworm
Black Worm Offical Repo
Stars: ✭ 80 (-10.11%)
Mutual labels:  screenshot
Api Store
Contains all the public APIs listed in Phantombuster's API store. Pull requests welcome!
Stars: ✭ 69 (-22.47%)
Mutual labels:  phantomjs
Pokegraphs
Pokemon pixel color graphs in javascript.
Stars: ✭ 87 (-2.25%)
Mutual labels:  pokemon
Wallaby
Concurrent browser tests with elixir
Stars: ✭ 1,143 (+1184.27%)
Mutual labels:  phantomjs
Shotwatch
Android Screenshot Watcher (Screenshot Detection)
Stars: ✭ 76 (-14.61%)
Mutual labels:  screenshot
Echo360
Commandline tool for automated downloads of echo360 videos hosted by university
Stars: ✭ 81 (-8.99%)
Mutual labels:  phantomjs
Emacs Gif Screencast
[MOVED TO GITLAB] One-frame-per-action GIF recording for optimal quality/size ratio
Stars: ✭ 74 (-16.85%)
Mutual labels:  screenshot

πŸ‘» Gastly

Gem Version Code Climate Build Status Coverage Status

Create screenshots or previews of web pages using Gastly. Under the hood Phantom.js and MiniMagick.

Gastly, I choose you!

Gastly

Installation

Add this line to your application's Gemfile:

gem 'gastly'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gastly

Usage

Gastly.capture('http://google.com', 'output.png')

It's also possible to further customize the creation of screenshots and further processing of the resulting image:

screenshot = Gastly.screenshot('http://google.com')
screenshot.selector = '#hplogo' # By default, the full screen is captured
screenshot.browser_width = 1280 # Default: 1440px
screenshot.browser_height = 780 # Default: 900px
screenshot.timeout = 1000 # Default: 0 seconds
screenshot.cookies = { user_id: 1, auth_token: 'abcd' } # If you need
screenshot.proxy_host = '10.10.10.1' # If you want to use a http proxy
screenshot.proxy_port = '8080'
screenshot.phantomjs_options = '--ignore-ssl-errors=true'
image = screenshot.capture

Or

screenshot = Gastly.screenshot('http://google.com', selector: '#hplogo', timeout: 1000)
image = screenshot.capture

You can resize, crop or change the format of the screenshot:

image = screenshot.capture
image.crop(width: 250, height: 250, x: 10, y: 0) # Crop with an offset
image.resize(width: 110, height: 110) # Creates a preview of the web page
image.format('png')
image.save('output.png')

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/mgrachev/gastly/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].