1<?xml version="1.0" encoding="ISO-8859-1"?> 2<!DOCTYPE refentry PUBLIC 3 "-//OASIS//DTD DocBook XML V4.1.2//EN" 4 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []> 5<refentry id='gifinto.1'> 6<refentryinfo><date>2 May 2012</date></refentryinfo> 7<refmeta> 8<refentrytitle>gifinto</refentrytitle> 9<manvolnum>1</manvolnum> 10<refmiscinfo class="source">GIFLIB</refmiscinfo> 11<refmiscinfo class="manual">GIFLIB Documentation</refmiscinfo> 12</refmeta> 13<refnamediv id='name'> 14<refname>gifinto</refname> 15<refpurpose>save GIF on stdin to file if size over set threshold</refpurpose> 16</refnamediv> 17 18<refsynopsisdiv id='synopsis'> 19 20<cmdsynopsis> 21 <command>gifinto</command> 22 <arg choice='opt'>-v</arg> 23 <arg choice='opt'>-s <replaceable>minsize</replaceable></arg> 24 <arg choice='opt'>-h</arg> 25 <group><replaceable>outfile</replaceable></group> 26</cmdsynopsis> 27</refsynopsisdiv> 28 29<refsect1><title>Description</title> 30 31<para>A program to save stdin into a file with given name, iff the 32result file has size bigger than specified (see below). This can be 33used to save a result under the same filename we started with in a 34chain of pipes.</para> 35 36<para>Always reads a GIF file from stdin.</para> 37 38</refsect1> 39<refsect1><title>Options</title> 40 41<variablelist> 42<varlistentry> 43<term>-v</term> 44<listitem> 45<para>Verbose mode (show progress). 46Enables printout of running scan lines.</para> 47</listitem> 48</varlistentry> 49<varlistentry> 50<term>-s MinFileSize</term> 51<listitem> 52<para>If file is less than MinFileSize, it is deleted and not renamed 53to the given name. This will prevent killing the file we started with if 54the result is an empty file, or the pipeline did not 55complete.</para> 56<para>The default file threshold size is 14 bytes, which is 1 bigger 57than GIF file stamp (6 bytes) plus a GIF file screen descriptor (7 58bytes), so a GIF file with only GIF stamp and screen descriptor will 59not be renamed.</para> 60</listitem> 61</varlistentry> 62<varlistentry> 63<term>-h</term> 64<listitem> 65<para>Print one line of command line help, similar to Usage above.</para> 66</listitem> 67</varlistentry> 68</variablelist> 69 70</refsect1> 71<refsect1><title>Author</title> 72 73<para>Gershon Elber.</para> 74 75</refsect1> 76</refentry> 77