Changeset 114

Show
Ignore:
Timestamp:
02/06/06 21:05:59 (3 years ago)
Author:
conrad
Message:

write stuff about fastphoto in man page

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fastphoto/trunk/Makefile.am

    r90 r114  
    11SUBDIRS = src 
     2 
     3man_MANS = fastphoto.1 
  • fastphoto/trunk/fastphoto.1

    r113 r114  
    11.TH FastPhoto 1 "February 2006" 
    22.SH NAME 
    3 fastphoto \- manipulate the X selection. 
     3fastphoto \- high performance photo rescaler 
    44.SH SYNOPSIS 
    55.B fastphoto 
     
    77.SH DESCRIPTION 
    88.PP 
    9 Retrieve and set the X selection
     9Rescale JPEG image files
    1010.PP 
    11 The X server maintains three selections, called \fIPRIMARY\fR, 
    12 \fISECONDARY\fR and \fICLIPBOARD\fR. The PRIMARY selection is conventionally 
    13 used to implement copying and pasting via the middle mouse button. The 
    14 SECONDARY and CLIPBOARD selections are less frequently used by application 
    15 programs. This program operates on the PRIMARY selection unless otherwise 
    16 specified. 
     11fastphoto is a high-performance rescaling tool for photographic images. It 
     12can be installed on a web server as a handler for files of type image/jpeg, 
     13providing fast server-side resizing with (optional) transparent caching. 
    1714.PP 
    18 By default, this program outputs the selection without modification if bot
    19 standard input and standard output are terminals (ttys). Otherwise, the 
    20 current selection is output if standard output is not a terminal 
    21 (tty), and the selection is set from standard input if standard input 
    22 is not a terminal (tty). If any input or output options are given then 
    23 the program behaves only in the requested mode. 
     15fastphoto uses libepeg, a high-performance JPEG resizing library whic
     16decodes only the DCT coefficients needed to reconstruct an image of the 
     17desired size, and avoids colorspace conversions (unless converting color 
     18images to grayscale). 
     19 
     20.SH "COMMANDLINE OPTIONS" 
    2421.PP 
    25 If both input and output is required then the previous selection is 
    26 output before being replaced by the contents of standard input. 
    27  
    28 .PP 
    29 \fBInput options\fR 
     22\fBOptions\fR 
    3023.TP 
    31 \fB\-a\fR, \fB\-\-append\fR 
    32 append standard input to the selection. Implies \fB\-i\fR
     24\fB\-x\fR, \fB\-\-width\fR 
     25Set the width of the output image
    3326.TP 
    34 \fB\-f\fR, \fB\-\-follow\fR 
    35 append to selection as standard input grows. Implies \fB\-i\fR
     27\fB\-y\fR, \fB\-\-height\fR 
     28Set the height of the output image
    3629.TP 
    37 \fB\-i\fR, \fB\-\-input\fR 
    38 read standard input into the selection. 
    39  
    40 .PP 
    41 \fBOutput options\fR 
    42 .TP 
    43 \fB\-o\fR, \fB\-\-output\fR 
    44 write the selection to standard output. 
    45  
    46 .PP 
    47 \fBAction options\fR 
    48 .TP 
    49 \fB\-c\fR, \fB\-\-clear\fR 
    50 clear the selection. Overrides all \fIinput\fR options. 
    51 .TP 
    52 \fB\-d\fR, \fB\-\-delete\fR 
    53 Request that the current selection be deleted. This not only clears the 
    54 selection, but also requests to the program in which the selection 
    55 resides that the selected contents be deleted. Overrides all \fIinput\fR 
    56 options. 
    57  
    58 .PP 
    59 \fBSelection options\fR 
    60 .TP 
    61 \fB\-p\fR, \fB\-\-primary\fR 
    62 operate on the PRIMARY selection (default). 
    63 .TP 
    64 \fB\-s\fR, \fB\-\-secondary\fR 
    65 operate on the SECONDARY selection. 
    66 .TP 
    67 \fB\-b\fR, \fB\-\-clipboard\fR 
    68 operate on the CLIPBOARD selection. 
    69  
    70 .TP 
    71 \fB\-k\fR, \fB\-\-keep\fR 
    72 Do not modify the selections, but make the PRIMARY and SECONDARY selections 
    73 persist even after the programs they were selected in exit. (Conventionally, 
    74 the CLIPBOARD selection is persisted by a separate special purpose program 
    75 such as \fIxclipboard(1)\fR). Ignores all \fIinput\fR and \fIoutput\fR 
    76 options. 
    77 .TP 
    78 \fB\-x\fR, \fB\-\-exchange\fR 
    79 exchange the PRIMARY and SECONDARY selections. Ignores all \fIinput\fR 
    80 and \fIoutput\fR options. 
    81  
    82 .PP 
    83 \fBX options\fR 
    84 .TP 
    85 \fB\-d\fR \fIdisplayname\fR, \fB\-\-display\fR \fIdisplayname\fR 
    86 specify the server to use; see \fIX(1)\fP. 
    87 .TP 
    88 \fB\-t\fR \fIms\fR, \fB\-\-selectionTimeout\fR \fIms\fR 
    89 Specify the timeout in milliseconds within which the selection must be 
    90 retrieved. A value of \fB0\fR (zero) specifies no timeout (default). 
     30\fB\-s\fR, \fB\-\-scale\fR 
     31Set the scale as a percentage 
    9132 
    9233.PP 
    9334\fBMiscellaneous options\fR 
    94 .TP 
    95 \fB\-l\fR \fIfilename\fR, \fB\-\-logfile\fR \fIfilename\fR 
    96 Specify the file to log errors to when detached. (Default 
    97 \fI$HOME/.fastphoto.log\fR) 
    98 .TP 
    99 \fB\-n\fR, \fB\-\-nodetach\fR 
    100 Do not detach from the controlling terminal. Without this option, fastphoto will 
    101 fork to become a background process in \fIinput\fR, \fIexchange\fR and 
    102 \fIkeep\fR modes. 
    10335.TP 
    10436\fB\-h\fR, \fB\-\-help\fR 
     
    11244output version information and exit 
    11345.PP 
    114 .SH NOTES 
    115 .PP 
    116 \fIThere is no X selection buffer.\fR The selection mechanism in X11 is 
    117 an interclient communication mediated by the X server each time any 
    118 program wishes to know the selection contents, eg. to perform a middle 
    119 mouse button paste. In order to implement modification of the selection(s) 
    120 (in \fIinput\fR, \fIkeep\fR and \fIexchange\fR modes) this program detaches 
    121 from the terminal, spawning a child process to supply the new selection(s) 
    122 on demand. This child exits immediately when any other program takes over 
    123 the selection(s), eg. when the user next selects some text in a terminal 
    124 window or by running \fBfastphoto -c\fR. 
    125 .PP 
     46.SH "SERVER CONFIGURATION" 
     47fastphoto can be installed as a handler for files of type image/jpeg. 
     48The following configuration directive is for Apache httpd: 
     49 
     50  ScriptAlias /fastphoto /usr/bin/fastphoto 
     51  Action image/jpeg /fastphoto 
     52 
    12653.SH "SEE ALSO" 
    127 imagemagick(1
     54httpd(8), apache(8
    12855.BR 
    12956.SH AUTHOR 
    13057Conrad Parker <conrad@metadecks.org>, February 2006 
     58 
     59Epeg by Carsten Haitzler (the Rasterman).