-.TH font2swf "1" "January 2006" "font2swf" "swftools"
+.TH font2swf "1" "January 2007" "font2swf" "swftools"
.SH NAME
font2swf - Converts a font to SWF.
-.TH gif2swf "1" "January 2006" "gif2swf" "swftools"
+.TH gif2swf "1" "January 2007" "gif2swf" "swftools"
.SH NAME
gif2swf - Takes a number of gif files and converts them to a swf movie, one
picture per frame.
Use Flash MX (SWF 6) Zlib encoding for the output. The resulting SWF will be
smaller, but not playable in Flash Plugins of Version 5 and below.
.TP
+\fB\-l\fR, \fB\-\-loop\fR \fIloop count\fR
+ Set loop count. (default: 0 [=infinite loop])
+.TP
\fB\-X\fR, \fB\-\-pixel\fR \fIwidth\fR
Force movie width to \fIwidth\fR (default: autodetect)
.TP
/* -*- mode: c; tab-width: 4; -*- ---------------------------[for (x)emacs]--
- $Id: gif2swf.c,v 1.5 2005/05/11 17:20:29 dseg Exp $
+ $Id: gif2swf.c,v 1.6 2007/01/13 17:26:47 kramm Exp $
GIF to SWF converter tool
Part of the swftools package.
}
static struct options_t options[] = {
- {"l", "loop"},
- {"r", "rate"},
- {"o", "output"},
- {"z", "zlib"},
- {"X", "pixel"},
- {"Y", "pixel"},
- {"v", "verbose"},
- {"C", "cgi"},
- {"V", "version"},
- {0, 0}
+{"r", "rate"},
+{"o", "output"},
+{"z", "zlib"},
+{"l", "loop"},
+{"X", "pixel"},
+{"Y", "pixel"},
+{"v", "verbose"},
+{"C", "cgi"},
+{"V", "version"},
+{0,0}
};
int args_callback_longoption(char *name, char *val)
void args_callback_usage(char *name)
{
printf("\n");
- printf("Usage: %s [-X width] [-Y height] [-o file.swf] [-r rate] file1.gif [file2.gif...]\n",
- name);
+ printf("Usage: %s [-X width] [-Y height] [-o file.swf] [-r rate] file1.gif [file2.gif ...]\n", name);
printf("\n");
- printf("-l , --loop <loop count> Set loop count. (default: 0 [=infinite loop])\n");
printf("-r , --rate <framerate> Set movie framerate (frames per second)\n");
printf("-o , --output <filename> Set name for SWF output file.\n");
printf("-z , --zlib <zlib> Enable Flash 6 (MX) Zlib Compression\n");
+ printf("-l , --loop <loop count> Set loop count. (default: 0 [=infinite loop])\n");
printf("-X , --pixel <width> Force movie width to <width> (default: autodetect)\n");
printf("-Y , --pixel <height> Force movie height to <height> (default: autodetect)\n");
printf("-v , --verbose <level> Set verbose level (0=quiet, 1=default, 2=debug)\n");
-o, --output <filename>
Set name for SWF output file.
Explicitly specify output file. (Otherwise, output will go to stdout / output.swf)
--z --zlib <zlib>
+-z, --zlib <zlib>
Enable Flash 6 (MX) Zlib Compression
Use Flash MX (SWF 6) Zlib encoding for the output. The resulting SWF will be
smaller, but not playable in Flash Plugins of Version 5 and below.
+-l, --loop <loop count>
+ Set loop count. (default: 0 [=infinite loop])
-X, --pixel <width>
Force movie width to <width> (default: autodetect)
-Y, --pixel <height>
-.TH jpeg2swf "1" "January 2006" "jpeg2swf" "swftools"
+.TH jpeg2swf "1" "January 2007" "jpeg2swf" "swftools"
.SH NAME
jpeg2swf - Converts jpeg images to SWF.
\fB\-o\fR, \fB\-\-output\fR \fIoutputfile\fR
Explicitly specify output file. (Otherwise, output will go to stdout / output.swf)
.TP
-\fB\-m\fR, \fB\-\-mx\fR
- Use Flash MX H.263 compression (use for correlated images)
-.TP
\fB\-q\fR, \fB\-\-quality\fR \fIquality\fR
Set compression quality (1-100, 1=worst, 100=best).
This option can be set independently for each image.
.TP
-\fB\-r\fR, \fB\-\-rate\fR \fIframerate\fR
+\fB\-r\fR, \fB\-\-rate\fR \fIframerate\fR
Set movie framerate (frames per second)
.TP
\fB\-z\fR, \fB\-\-zlib\fR \fIzlib\fR
Use Flash MX (SWF 6) Zlib encoding for the output. The resulting SWF will be
smaller, but not playable in Flash Plugins of Version 5 and below.
.TP
+\fB\-M\fR, \fB\-\-mx\fR
+ Use Flash MX H.263 compression (use for correlated images)
+.TP
\fB\-x\fR, \fB\-\-xoffset\fR \fIoffset\fR
horizontally offset images by \fIoffset\fR
.TP
break;
}
+ case 'M': {
+ global.mx = 1;
+ res = 1;
+ break;
+ }
+
case 'm': {
char*s = strdup(val);
char*c = strchr(s, ':');
{"q", "quality"},
{"r", "rate"},
{"z", "zlib"},
+{"M", "mx"},
+{"x", "xoffset"},
+{"y", "yoffset"},
{"X", "width"},
{"Y", "height"},
{"v", "verbose"},
printf("\n");
printf("-o , --output <outputfile> Explicitly specify output file. (otherwise, output.swf will be used)\n");
printf("-q , --quality <quality> Set compression quality (1-100, 1=worst, 100=best)\n");
- printf("-r , --rate <framerate> Set movie framerate (frames per second)\n");
+ printf("-r , --rate <framerate> Set movie framerate (frames per second)\n");
printf("-z , --zlib <zlib> Enable Flash 6 (MX) Zlib Compression\n");
+ printf("-M , --mx Use Flash MX H.263 compression (use for correlated images)\n");
+ printf("-x , --xoffset <offset> horizontally offset images by <offset>\n");
+ printf("-y , --yoffset <offset> vertically offset images by <offset>\n");
printf("-X , --width <width> Force movie width to <width> (default: autodetect)\n");
printf("-Y , --height <height> Force movie height to <height> (default: autodetect)\n");
printf("-v , --verbose <level> Set verbose level to <level> (0=quiet, 1=default, 2=debug)\n");
Set compression quality (1-100, 1=worst, 100=best)
Set compression quality (1-100, 1=worst, 100=best).
This option can be set independently for each image.
--r --rate <framerate>
+-r --rate <framerate>
Set movie framerate (frames per second)
-z --zlib <zlib>
Enable Flash 6 (MX) Zlib Compression
Use Flash MX (SWF 6) Zlib encoding for the output. The resulting SWF will be
smaller, but not playable in Flash Plugins of Version 5 and below.
+-M --mx
+ Use Flash MX H.263 compression (use for correlated images)
-x --xoffset <offset>
horizontally offset images by <offset>
-y --yoffset <offset>
-.TH png2swf "1" "January 2006" "png2swf" "swftools"
+.TH png2swf "1" "January 2007" "png2swf" "swftools"
.SH NAME
png2swf - Takes a number of png files and converts them to a swf movie, one
picture per frame.
Use Flash MX (SWF 6) Zlib encoding for the output. The resulting SWF will be
smaller, but not playable in Flash Plugins of Version 5 and below.
.TP
+\fB\-T\fR, \fB\-\-flashversion\fR
+ Set the flash version to generate
+.TP
\fB\-X\fR, \fB\-\-pixel\fR \fIwidth\fR
Force movie width to \fIwidth\fR (default: autodetect)
.TP
break;
case 'z':
- global.version = 6;
+ if(global.version<6)
+ global.version = 6;
res = 0;
break;
global.force_height = atoi(val);
res = 1;
break;
-
+
case 'V':
printf("png2swf - part of %s %s\n", PACKAGE, VERSION);
exit(0);
{"r", "rate"},
{"o", "output"},
{"z", "zlib"},
+{"T", "flashversion"},
{"X", "pixel"},
{"Y", "pixel"},
{"v", "verbose"},
printf("-r , --rate <framerate> Set movie framerate (frames per second)\n");
printf("-o , --output <filename> Set name for SWF output file.\n");
printf("-z , --zlib <zlib> Enable Flash 6 (MX) Zlib Compression\n");
+ printf("-T , --flashversion Set the flash version to generate\n");
printf("-X , --pixel <width> Force movie width to <width> (default: autodetect)\n");
printf("-Y , --pixel <height> Force movie height to <height> (default: autodetect)\n");
printf("-v , --verbose <level> Set verbose level (0=quiet, 1=default, 2=debug)\n");
Enable Flash 6 (MX) Zlib Compression
Use Flash MX (SWF 6) Zlib encoding for the output. The resulting SWF will be
smaller, but not playable in Flash Plugins of Version 5 and below.
+-T, --flashversion
+ Set the flash version to generate
-X, --pixel <width>
Force movie width to <width> (default: autodetect)
-Y, --pixel <height>
-.TH swfbbox "1" "January 2006" "swfbbox" "swftools"
+.TH swfbbox "1" "January 2007" "swfbbox" "swftools"
.SH NAME
swfbbox - Tool for playing around with SWF bounding boxes.
-.TH swfc "1" "January 2006" "swfc" "swftools"
+.TH swfc "1" "January 2007" "swfc" "swftools"
.SH NAME
swfc - compile .sc files to swf.
\fB\-V\fR, \fB\-\-version\fR
Print version info and exit
.TP
+\fB\-C\fR, \fB\-\-cgi\fR
+ Output to stdout (for use in CGI environments)
+.TP
\fB\-v\fR, \fB\-\-verbose\fR
Increase verbosity. Use more than one \fB-v\fR for greater effect.
.TP
static struct options_t options[] = {
{"h", "help"},
{"V", "version"},
+{"C", "cgi"},
{"v", "verbose"},
{"o", "output"},
{0,0}
printf("\n");
printf("-h , --help Print short help message and exit\n");
printf("-V , --version Print version info and exit\n");
+ printf("-C , --cgi Output to stdout (for use in CGI environments)\n");
printf("-v , --verbose Increase verbosity. \n");
printf("-o , --output <filename> Set output file to <filename>.\n");
printf("\n");
-.TH swfcombine "1" "January 2006" "swfcombine" "swftools"
+.TH swfcombine "1" "January 2007" "swfcombine" "swftools"
.SH NAME
swfcombine - a tool for combining swf (flash) files
-.TH swfdump "1" "January 2006" "swfdump" "swftools"
+.TH swfdump "1" "January 2007" "swfdump" "swftools"
.SH NAME
swfdump - Display an SWF file's content.
-.TH wav2swf "1" "January 2006" "wav2swf" "swftools"
+.TH wav2swf "1" "January 2007" "wav2swf" "swftools"
.SH NAME
wav2swf - convert a WAV file to an SWF animation.