home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / jpeg5 / source / doc / wrjpgcom.man < prev   
Text File  |  1994-10-25  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. WRJPGCOM(1)                                           WRJPGCOM(1)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        wrjpgcom - insert text comments into a JPEG file
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        w✓wr✓rj✓jp✓pg✓gc✓co✓om✓m  [ -✓-r✓re✓ep✓pl✓la✓ac✓ce✓e ] [ -✓-c✓co✓om✓mm✓me✓en✓nt✓t _✓t_✓e_✓x_✓t ] [ -✓-c✓cf✓fi✓il✓le✓e _✓n_✓a_✓m_✓e ] [
  12.        _✓f_✓i_✓l_✓e_✓n_✓a_✓m_✓e ]
  13.  
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        w✓wr✓rj✓jp✓pg✓gc✓co✓om✓m reads the named JPEG/JFIF file, or  the  standard
  17.        input  if  no file is named, and generates a new JPEG/JFIF
  18.        file on standard output.  A comment block is added to  the
  19.        file.
  20.  
  21.        The  JPEG  standard allows "comment" (COM) blocks to occur
  22.        within a JPEG file.  Although the standard  doesn't  actu¡
  23.        ally  define what COM blocks are for, they are widely used
  24.        to hold user-supplied text strings.   This  lets  you  add
  25.        annotations,  titles, index terms, etc to your JPEG files,
  26.        and later retrieve them as text.  COM blocks do not inter¡
  27.        fere  with the image stored in the JPEG file.  The maximum
  28.        size of a COM block is 64K, but you can have  as  many  of
  29.        them as you like in one JPEG file.
  30.  
  31.        w✓wr✓rj✓jp✓pg✓gc✓co✓om✓m adds a COM block, containing text you provide, to
  32.        a JPEG file.  Ordinarily, the COM block is added after any
  33.        existing COM blocks; but you can delete the old COM blocks
  34.        if you wish.
  35.  
  36. O✓OP✓PT✓TI✓IO✓ON✓NS✓S
  37.        Switch names may be abbreviated, and are not  case  sensi¡
  38.        tive.
  39.  
  40.        -✓-r✓re✓ep✓pl✓la✓ac✓ce✓e
  41.               Delete any existing COM blocks from the file.
  42.  
  43.        -✓-c✓co✓om✓mm✓me✓en✓nt✓t _✓t_✓e_✓x_✓t
  44.               Supply text for new COM block on command line.
  45.  
  46.        -✓-c✓cf✓fi✓il✓le✓e _✓n_✓a_✓m_✓e
  47.               Read text for new COM block from named file.
  48.  
  49.        If  you have only one line of comment text to add, you can
  50.        provide it on the command line with -✓-c✓co✓om✓mm✓me✓en✓nt✓t.  The comment
  51.        text  must be surrounded with quotes so that it is treated
  52.        as a single argument.  Longer comments can be read from  a
  53.        text file.
  54.  
  55.        If  you  give  neither  -✓-c✓co✓om✓mm✓me✓en✓nt✓t nor -✓-c✓cf✓fi✓il✓le✓e, then w✓wr✓rj✓jp✓pg✓gc✓co✓om✓m
  56.        will read the comment text from standard input.  (In  this
  57.        case  an  input  image file name MUST be supplied, so that
  58.        the source JPEG file comes from somewhere else.)  You  can
  59.        enter  multiple  lines, up to 64KB worth.  Type an end-of-
  60.        file  indicator  (usually  control-D)  to  terminate   the
  61.  
  62.  
  63.  
  64.                           30 August 1994                        1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. WRJPGCOM(1)                                           WRJPGCOM(1)
  71.  
  72.  
  73.        comment text entry.
  74.  
  75.        w✓wr✓rj✓jp✓pg✓gc✓co✓om✓m  will not add a COM block if the provided comment
  76.        string is empty.  Therefore -✓-r✓re✓ep✓pl✓la✓ac✓ce✓e -✓-c✓co✓om✓mm✓me✓en✓nt✓t  "✓""✓"  can  be
  77.        used to delete all COM blocks from a file.
  78.  
  79. E✓EX✓XA✓AM✓MP✓PL✓LE✓ES✓S
  80.        Add a short comment to in.jpg, producing out.jpg:
  81.  
  82.               w✓wr✓rj✓jp✓pg✓gc✓co✓om✓m -✓-c✓c _✓"_✓V_✓i_✓e_✓w _✓o_✓f _✓m_✓y _✓b_✓a_✓c_✓k _✓y_✓a_✓r_✓d_✓" _✓i_✓n_✓._✓j_✓p_✓g >✓> _✓o_✓u_✓t_✓._✓j_✓p_✓g
  83.  
  84.        Attach a long comment previously stored in comment.txt:
  85.  
  86.               w✓wr✓rj✓jp✓pg✓gc✓co✓om✓m _✓i_✓n_✓._✓j_✓p_✓g <✓< _✓c_✓o_✓m_✓m_✓e_✓n_✓t_✓._✓t_✓x_✓t >✓> _✓o_✓u_✓t_✓._✓j_✓p_✓g
  87.  
  88.        or equivalently
  89.  
  90.               w✓wr✓rj✓jp✓pg✓gc✓co✓om✓m -✓-c✓cf✓fi✓il✓le✓e _✓c_✓o_✓m_✓m_✓e_✓n_✓t_✓._✓t_✓x_✓t <✓< _✓i_✓n_✓._✓j_✓p_✓g >✓> _✓o_✓u_✓t_✓._✓j_✓p_✓g
  91.  
  92. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  93.        c✓cj✓jp✓pe✓eg✓g(1), d✓dj✓jp✓pe✓eg✓g(1), r✓rd✓dj✓jp✓pg✓gc✓co✓om✓m(1)
  94.  
  95. A✓AU✓UT✓TH✓HO✓OR✓R
  96.        Independent JPEG Group
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                           30 August 1994                        2
  131.  
  132.  
  133.