home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / jpeg5 / bin / djpeg.man < prev    next >
Text File  |  1994-08-08  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. DJPEG(1)                 USER COMMANDS                   DJPEG(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      djpeg - decompress a JPEG file to an image file
  10.  
  11. SYNOPSIS
  12.      djpeg [ -GPRTgD1bd ] [ -q _✓c_✓o_✓l_✓o_✓r_✓s ] [ -m _✓m_✓e_✓m_✓o_✓r_✓y ] [  _✓f_✓i_✓l_✓e_✓n_✓a_✓m_✓e
  13.      ]
  14.  
  15. DESCRIPTION
  16.      djpeg decompresses the named  JPEG  file,  or  the  standard
  17.      input if no file is named, and produces an image file on the
  18.      standard output.  PPM, GIF, Targa, or RLE output format  can
  19.      be  selected.   (RLE is supported only if the URT library is
  20.      available.)
  21.  
  22. OPTIONS
  23.      -G   Select GIF output format (implies -q, with  default  of
  24.           256 colors).
  25.  
  26.      -P   Select PPM or PGM output format (this is the  default).
  27.           PGM  is emitted if the JPEG file is gray-scale or if -g
  28.           is specified.
  29.  
  30.      -R   Select RLE output format.  Requires URT library.
  31.  
  32.      -T   Select Targa output format.  Gray-scale format is emit-
  33.           ted  if  the JPEG file is gray-scale or if -g is speci-
  34.           fied; otherwise, colormapped format is emitted if -q is
  35.           specified; otherwise, 24-bit full-color format is emit-
  36.           ted.
  37.  
  38.      -g   Force gray-scale output even if input is color.
  39.  
  40.      -q _✓N Quantize to N  colors.   This  reduces  the  number  of
  41.           colors  in the output image so that it can be displayed
  42.           on a colormapped display or  stored  in  a  colormapped
  43.           file  format.   For  example,  if  you  have  an  8-bit
  44.           display, you'd need to quantize to 256 or fewer colors.
  45.  
  46.      -D   Do  not  use  dithering  in  color  quantization.    By
  47.           default,  Floyd-Steinberg  dithering  is  applied  when
  48.           quantizing colors, but on  some  images  dithering  may
  49.           result in objectionable "graininess".  If that happens,
  50.           you can turn off dithering  with  -D.   -D  is  ignored
  51.           unless you also say -q or -G.
  52.  
  53.      -1   Use one-pass instead of  two-pass  color  quantization.
  54.           The  one-pass  method  is faster and needs less memory,
  55.           but it produces a lower-quality image.  -1  is  ignored
  56.           unless  you  also  say  -q  or  -G.  Also, the one-pass
  57.           method is always used for gray-scale output  (the  two-
  58.           pass method is no improvement then).
  59.  
  60.  
  61.  
  62.  
  63. Sun Release 4.1   Last change: 28 February 1992                 1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DJPEG(1)                 USER COMMANDS                   DJPEG(1)
  71.  
  72.  
  73.  
  74.      -b   Perform cross-block smoothing.  This is  quite  memory-
  75.           intensive  and  only  seems to improve the image at low
  76.           quality settings (-Q 10 to 20 or  so).   At  normal  -Q
  77.           settings it may make the image worse.
  78.  
  79.      -d   Enable debug printout.  More  -d's  give  more  output.
  80.           Also, version information is printed at startup.
  81.  
  82.      -m _✓m_✓e_✓m_✓o_✓r_✓y
  83.           Set limit for amount of memory  to  use  in  processing
  84.           large  images.  Value is in thousands of bytes, or mil-
  85.           lions of bytes if "M" is attached to the  number.   For
  86.           example, -m 4m selects 4000000 bytes.  If more space is
  87.           needed, temporary files will be used.
  88.  
  89. EXAMPLES
  90.      This example decompresses the JPEG file  foo.jpg,  quantizes
  91.      to  256  colors,  and  saves  the  output  in  GIF format in
  92.      foo.gif:
  93.  
  94.           djpeg -G _✓f_✓o_✓o._✓j_✓p_✓g > _✓f_✓o_✓o._✓g_✓i_✓f
  95.  
  96. SEE ALSO
  97.      cjpeg(1)
  98.      ppm(5), pgm(5)
  99.      Wallace, Gregory K.  "The  JPEG  Still  Picture  Compression
  100.      Standard",  Communications  of the ACM, April 1991 (vol. 34,
  101.      no. 4), pp. 30-44.
  102.  
  103. AUTHOR
  104.      Independent JPEG Group
  105.  
  106. BUGS
  107.      Arithmetic coding is not supported for legal reasons.
  108.  
  109.      Not as fast as we'd like.
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sun Release 4.1   Last change: 28 February 1992                 2
  130.  
  131.  
  132.  
  133.