-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
42 lines (32 loc) · 1.23 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
Flash to JPEG
Copyright 2009, Toshiyuki Suzumura. under GPL license.
Description:
"flashtojpeg" is console utility, it render JPEG from Flash-anmination (SWF).
You can specify:
* Rendering frame by sec.
* Quality of JPEG compression.
* Write JPEG stream to "file" or "stdout".
"stdout" is useful to use with image prosessor, e.g. "ImageMagick".
How to build:
This program is depend on following library and packages:
* libfad - "Flash Animation Decode library"
http://sourceforge.net/projects/fad/
* cairo-devel
* SDL-devel
* libjpeg-devel
First, you must install these library and packages.
And
$ make
$ make install
It install into "/usr/local/bin" by default.
How to use:
See "flashtojpeg -h" for command-line options.
Sample:
$ flashtojpeg foo.swf bar.jpg
=> Render "bar.jpg" from "foo.swf", frame at 0sec(first), JPEG quality is 100(BEST).
$ flashtojpeg foo.swf -q 50 -t 10 bar.jpg
=> Render "bar.jpg" from "foo.swf", frame at 10 sec, JPEG quality is 50.
$ flashtojpeg foo.swf
=> Print "foo.swf" information that image width(px), height(px) and frame rate.
$ flashtojpeg foo.swf -- | convert - -resize "200x200>" thumb.jpg
=> Write JPEG stream to stdout, and resize with ImageMagick.