377
|
1 |
-*- mode: outline; coding: utf-8 -*-
|
|
2 |
|
|
3 |
* Screen capture.
|
|
4 |
|
|
5 |
** Wink.
|
|
6 |
|
|
7 |
Using Wink you can capture screenshots, add explanations boxes, buttons,
|
|
8 |
titles etc and generate a highly effective tutorial for your users.
|
|
9 |
|
|
10 |
http://www.debugmode.com/wink/
|
|
11 |
home page
|
|
12 |
|
|
13 |
** Screenshort movies.
|
|
14 |
|
|
15 |
*** ImageMagic and shell script.
|
|
16 |
|
|
17 |
#!/bin/bash
|
|
18 |
let iter=1
|
|
19 |
while [ "$iter" -le "$stop" ]; do
|
|
20 |
import $iter.png
|
|
21 |
sleep 1
|
|
22 |
let x+=1
|
|
23 |
done
|
|
24 |
|
|
25 |
If you interesting in capturing specific window - by 'xwininfo' find,
|
|
26 |
intereesting your window id (hex value) and use command:
|
|
27 |
|
|
28 |
import -window $windowid $iter.png
|
|
29 |
|
|
30 |
To quick view result run:
|
|
31 |
|
|
32 |
$ cd $img_dir
|
|
33 |
$ animate -delay 20 *.png
|
|
34 |
^C
|
|
35 |
|
|
36 |
To compound image together:
|
|
37 |
|
|
38 |
$ convert -delay 20 *.png capture.mng # license free, multi-image file format
|
|
39 |
$ convert -delay 20 *.png capture.gif
|
|
40 |
|
|
41 |
You can add text to pictures before compound theirs:
|
|
42 |
|
|
43 |
$ mogrify -fill yellow -draw 'Rectangle 10,10 150,30' -fill black -pointsize 14 \
|
|
44 |
-draw 'text 15,25 "by http://example.com"' $iter.png
|
|
45 |
|
|
46 |
If screen capturing slow for you use MIFF file format.
|
|
47 |
|
|
48 |
Use root flag to capture all screen:
|
|
49 |
|
|
50 |
$ import -window root $iter.png
|