prtscr 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -3
- data/lib/prtscr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a03d5ceee7e0104132394f7b8ba7a5a77706c72
|
4
|
+
data.tar.gz: cd5f63e359ab361941833926a6a4bff1d240728b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eacc9d8758da9ff8e30fe665f7d94201e4ae92b1995870231e955f934c4d3cb322631a8c259f63b46e27ce904537ba88d9420202b62291cda1c90a7cf1b2b060
|
7
|
+
data.tar.gz: 2ec164b1d293abd98bd8ee38d09d71ab8b9807dc61a70a02f6320ecb326f85d80cf843732255842a7c24b768ddc6b657d2d490d400b9b52f64adb77a4ed219c0
|
data/README.md
CHANGED
@@ -23,18 +23,30 @@ Or install it yourself as:
|
|
23
23
|
run the next line of code:
|
24
24
|
|
25
25
|
```ruby
|
26
|
-
Prtscr.get(url: 'https://google.com',width: 1280, height: 1024, scale: 250, key: 'YOUR_KEY_HERE', secret: 'YOUR_SECRET_HERE')
|
26
|
+
Prtscr.get(url: 'https://google.com', width: 1280, height: 1024, scale: 250, key: 'YOUR_KEY_HERE', secret: 'YOUR_SECRET_HERE', format: 'jpg')
|
27
27
|
```
|
28
28
|
|
29
29
|
And get something like:
|
30
30
|
|
31
31
|
```
|
32
|
-
https://prtscr.ru/
|
32
|
+
https://prtscr.ru/v2/1280x1024/250/1484317141/AIQACodQ/be8d94e167d4e0e9c6d8e106582f0894/aHR0cHM6Ly9nb29nbGUuY29t.jpg
|
33
33
|
```
|
34
34
|
|
35
35
|
Having previous line, you can use html img tag:
|
36
36
|
|
37
|
-
![Google website screenshot](https://prtscr.ru/
|
37
|
+
![Google website screenshot](https://prtscr.ru/v2/1280x1024/250/1484317141/AIQACodQ/be8d94e167d4e0e9c6d8e106582f0894/aHR0cHM6Ly9nb29nbGUuY29t.jpg)
|
38
|
+
|
39
|
+
### Available options
|
40
|
+
|
41
|
+
**url**: URL Address
|
42
|
+
**width**: Browser width, px
|
43
|
+
**height**: Browser height, px
|
44
|
+
**scale**: Screenshot scale for width, px
|
45
|
+
**key**: Your Key
|
46
|
+
**secret**: Your Secret
|
47
|
+
**format**: Screenshot extension
|
48
|
+
|
49
|
+
**key** and **secret** options you can obtain at [PrtScr.ru](https://prtscr.ru/)
|
38
50
|
|
39
51
|
## Development
|
40
52
|
|
data/lib/prtscr/version.rb
CHANGED