www.pudn.com > sswf-1.7.4-src.zip > jpg2swf.1
.\"
.\" MAN PAGE COMMENTS
.\"
.\" Written by Alexis Wilke for Made to Order Software, Ltd. (c) 2006
.\"
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH JPG2SSWF 1 "2005 Aug 18" "JPG2SWF-1"
.de }1
. ds ]X \&\\*(]B\\
. nr )E 0
. if !"\\$1"" .nr )I \\$1n
. }f
. ll \\n(LLu
. in \\n()Ru+\\n(INu+\\n()Iu
. ti \\n(INu
. ie !\\n()Iu+\\n()Ru-\w\\*(]Xu-3p \{\\*(]X
. br\}
. el \\*(]X\h|\\n()Iu+\\n()Ru\c
. }f
..
.\"
.\" File Name macro. This used to be `.PN', for Path Name,
.\" but Sun doesn't seem to like that very much.
.\"
.de FN
\fI\|\\$1\|\fP
..
.SH NAME
jpg2swf \- Sample tool to create slideshows of JPEG and Targa images
.SH SYNOPSIS
.B jpg2swf
[options]
file ...
.SH DESCRIPTION
.B jpg2swf
is a simple tool which reads images (jpeg and targa at this time) and
creates a slideshow using the SWF file format (the output is a Flash movie).
.PP
The following explains the options available in the tool. For much
more options and complete support of Flash version 7, you certainly
want to look into \fIsswf\fP instead. The source code of this tool
can, however, be very useful if you want to use the C++ library
coming with \fIsswf\fP.
.SH OPTIONS
The following options are understood by \fBjpg2swf\fR.
.TP
.BR \-\^b " \fI\fP "
Define the background color. The format is expected to be like in
HTML (i.e. a hash (#) followed with 6 hexadecimal digits). For
instance, for a pure cyan background, one can use #00FFFF. By default
the background color is pure white (#FFFFFF).
.TP
.BR \-\^B
This option is used to
\fIBlank out\fP the screen at the end of the slideshow. This option
is ignored if you also specify the \fI-l\fP option (loop). The blanking
corresponds to the background color of the movie (see the \fI-b\fP
option for more information about the background color).
.TP
.BR \-\^h
Show the help screen with a quick explaination of each of the currently
supported options.
.TP
.BR \-\^l
Setup the loop mode. This means the slideshow will be played forever.
It cancels any action defined by the \fI-B\fP option.
.TP
.BR \-\^o " \fI.swf\fP "
Defines the output filename. When you are not creating a slideshow,
then you can reuse the \fI-o\fP option for each input file that you
pass on the command line. The option will be used for the next file.
For instance, to create the movies \fBa.swf\fR and \fBb.swf\fR from
the files \fBimg1.jpg\fR and \fBimg2.tga\fR, then you would write
the following:
.br
.br
jpg2swf -o a.swf img1.jpg -o b.swf img2.tga
.TP
.BR \-\^q " \fI\fP "
Defines the JPEG compression quality in the final output. The best
compression is \fB100\fR and the worse is \fB1\fR. Other values
will either be ignored or clamped. The default is 90.
.TP
.BR \-\^r " \fI\fP"
Defines the rate at which the images will be played. A slow
slideshow will use a small rate (such as 1.0), a very fast
slideshow will use a large rate (such as 15.0). The rate is not
clamped internally. It can be as small as 1/255th and also it
can be as large as 255. It is strongly suggested that you do not
use more than 30.
.TP
\fB\-s\fR
Start a slideshow. When this option is NOT mentioned, then each image
is created in a separate Flash file. When this option is specified,
it creates one Flash file which is a slideshow of all the specified
files up to the next \fI-s\fP option. You can specify \fI-l\fP or
\fI-B\fP and \fI-r\fP for slideshows. Note that the tool does not
try to resize the images. You need to make sure that all the input
images are of the same size to make it look nice. You can create
several Flash files by using the -s option multiple times.
.br
.br
When the \fI-s\fP option is used, you get only one output file. Thus,
you only need to specify one output filename with the \fI-o\fP option.
This option can be repeat for each \fI-s\fP option (put the \fI-o\fP
after the \fI-s\fP option.) If no \fI-o\fP is specified with the
\fI-s\fP option, then the tool uses the name of the last image
it loaded with the .swf extension.
.SH ARGUMENTS
All the arguments which do not start with a dash (-) are taken as
image file names. When the \fI-s\fP option is used, all the images
are used to generate a slideshow (multiple \fI-s\fP can be used
to create multiple slideshows in one go). Otherwise, the tool
creates one Flash movie per image successfully loaded.
.SH FILES
.PD 0
.TP
.FN .swf
When \fBjpg2swf\fP is used without the
.BI -o
option, the system automatically saves the result in a file named
after the input file(s) with its extension changed to
.IR .swf .
.PD
.SH "SEE ALSO"
\fIsswf\fP, the only SSWF compiler.
.PP
sswf(1), swf_dump(1), ft2sswf(1)
.SH BUGS
.PP
None the command line options are currently checked for validity. It is
your responsibility to make sure that it is correct.
.PP
.TP
You are welcome to report bugs to me at:
.br
alexis_wilke@users.sourceforge.net
.br
.B "Thank you in advance for the info!"
.PP
.SH "VERSION"
.PP
This manual page is part of version of SSWF.
.PP
This file was last updated on .
.SH COPYRIGHT
.if n jpg2swf is a Copyright (c) 2005-2006 by Made to Order Software, Ltd.
.if t jpg2swf is a Copyright \(co 2005-2006 by Made to Order Software, Ltd.
.PP
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and
associated documentation files (the "Software"), to
deal in the Software without restriction, including
without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom
the Software is furnished to do so, subject to the
following conditions:
.PP
The above copyright notice and this permission notice
shall be included in all copies or substantial
portions of the Software.
.PP
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
.zZ
.zY