Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrachev committed Sep 18, 2018
1 parent a945856 commit 3b75cc3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
[![Build Status](https://travis-ci.org/mgrachev/gastly.svg?branch=master)](https://travis-ci.org/mgrachev/gastly)
[![Coverage Status](https://coveralls.io/repos/github/mgrachev/gastly/badge.svg?branch=master)](https://coveralls.io/github/mgrachev/gastly?branch=master)

Create screenshots or previews of web pages using Gastly. Under the hood [Phantom.js](https://github.com/ariya/phantomjs/) and [MiniMagick](https://github.com/minimagick/minimagick). Gastly, I choose you!
Create screenshots or previews of web pages using Gastly. Under the hood [Phantom.js](https://github.com/ariya/phantomjs/) and [MiniMagick](https://github.com/minimagick/minimagick).

Gastly, I choose you!

![Gastly](https://github.com/mgrachev/gastly/raw/master/gastly.png)

Expand All @@ -32,7 +34,7 @@ Or install it yourself as:
Gastly.capture('http://google.com', 'output.png')
```

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

```ruby
screenshot = Gastly.screenshot('http://google.com')
Expand All @@ -58,7 +60,7 @@ You can resize or change the format of the screenshot:

```ruby
image = screenshot.capture
image.resize(width: 110, height: 110) # Creates a previews of web-page
image.resize(width: 110, height: 110) # Creates a preview of the web page
image.format('png')
image.save('output.png')
```
Expand Down

0 comments on commit 3b75cc3

Please sign in to comment.