This repository has been archived by the owner on Mar 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
90 lines (56 loc) · 1.93 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
===================================================
Mozshot was obsolete, taken over by Blinky;
https://github.com/sugi/blinky
===================================================
----------------------------------------------------
README
------
MozShot - Web site thumbnail service by gtkmozembed.
Copyright (C) 2005 Tatsuki Sugiura <[email protected]>
Released unlder the License same as Ruby.
This was based on MozSnapshooter written by Mirko Maischberger.
http://mirko.lilik.it/Ruby-GNOME2/moz-snapshooter.rb
Origianl idea by Andrew McCall - <andrew at textux.com>
http://www.hackdiary.com/archives/000055.html
And I refered many similar implementation. Thanks for all!
Requirement
------
* mozshot.rb (simple)
* X server
* ruby 1.8 above
* ruby gnome2
* ruby gtkmozembed binding (included in ruby gnome2)
* mozshot.rb (daemon mode)
* drb + rinda
* Sample CGI interface
* apache + mod_ssi
* Rmagick (Ruby ImageMagick Interface)
How to use
------
Simple way:
Type below in your XTerminal.
mozshot http://www.google.com/ shot.png
Daemon mode:
# run TupleSpace daemon
./ts.rb &
# run snapshot daemon
./mozshot -d &
# run client
./client.rb http://foo.bar
Tips
------
* To supress scrollbar
Add "body { overflow: hidden !important }" to
~/.mozilla/mozshot/default/chrome/userContent.css.
* To change default language
Add setting to ~/.mozilla/mozshot/default/user.js.
Japanese example followed;
user_pref("intl.accept_languages", "ja, en-us, en");
user_pref("intl.charset.default", "Shift_JIS");
user_pref("intl.charset.detector", "ja_parallel_state_machine");
* To get screenshot of https://... URI with XULRunner, you need to make
disable modal dialog.
user_pref("security.warn_entering_secure", false);
user_pref("security.warn_entering_weak", false);
user_pref("security.warn_leaving_secure", false);
user_pref("security.warn_viewing_mixed", false);