Skip to content

Commit 1dc64a4

Browse files
VoragoFylmTM
authored andcommitted
GIF generation documentation (#31)
* GIF generation documentation * Added gifs
1 parent 4ac0268 commit 1dc64a4

File tree

6 files changed

+41
-0
lines changed

6 files changed

+41
-0
lines changed

docs/gifs/2.3.0/open-editor.gif

767 KB
Loading

docs/gifs/2.3.0/params.gif

1.25 MB
Loading

docs/gifs/2.3.0/profile.gif

2.86 MB
Loading

docs/gifs/2.3.0/warning.gif

720 KB
Loading

docs/gifs/2.3.0/wrong.gif

709 KB
Loading

docs/how-write-documentation.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,47 @@ IntelliJ:
1717
* Editor font: Fira Code, 16
1818
* Enable ligatures: true
1919

20+
Make sure that tool windows are properly sized by using ctrl+shift+arrows shortcut.
21+
Hide tool window completely, then make it visible. (3 times for console window, 4 times for data source window)
22+
23+
## GIF
24+
25+
### Preparation
26+
27+
Use [simplescreenrecorder](http://www.maartenbaert.be/simplescreenrecorder/) to record .mkv
28+
Use [giflossy](https://github.com/pornel/giflossy/releases/tag/lossy/1.82.1) for GIF compression (aliased as gifsicle)
29+
30+
### Recording MKV
31+
32+
Configure simplescreenrecorder:
33+
34+
* Set frame rate to 10
35+
* Don't record audio
36+
* Record a fixed rectangle at 1280x960 at (0,0)
37+
38+
Resize and move window to upper-left corner:
39+
40+
```
41+
xdotool search --name "graph-examples" windowsize 1280 960 windowmove 0 0
42+
```
43+
44+
Save recorded video with screencast.mkv name
45+
46+
### Generate GIF
47+
48+
cd into directory where screencast.mkv resides
49+
50+
Execute following commands
51+
52+
```sh
53+
mkdir /tmp/frames
54+
ffmpeg -i screencast.mkv -vf fps=4 /tmp/frames/ffout%03d.png
55+
convert -loop 0 -delay 20 /tmp/frames/ffout*.png /tmp/output.gif
56+
gifsicle -O3 --lossy=80 --colors 256 /tmp/output.gif > screencast.gif
57+
rm -r /tmp/frames
58+
rm /tmp/output.gif
59+
```
60+
2061
# Database seed
2162

2263
## Queries

0 commit comments

Comments
 (0)