pnmtotiffcmyk(1)


NAME

   pnmtotiffcmyk - convert a portable anymap into a CMYK encoded TIFF file

SYNOPSIS

   pnmtotiffcmyk [Compargs][Tiffargs][Convargs][ pnmfile ]

   Compargs:
          [-none|-packbits|-lzw [-predictor n]]

   Tiffargs:
          [-msb2lsb|-lsb2msb] [-rowsperstrip n]
          [-lowdotrange n] [-highdotrange n]
          [-knormal|-konly|-kremove]

   Convargs:
          [[-default][Defargs]|-negative]

   Defargs:
          [-theta deg] [-gamma n] [-gammap -1|-gammap n]

DESCRIPTION

   Reads a portable anymap as input.  Produces a CMYK encoded TIFF file as
   output.  Optionally modifies the colour balance and  black  level,  and
   removes CMY from under K.

OPTIONS

   The  order of most options is not important, but options for particular
   conversion algorithms must  appear  after  the  algorithm  is  selected
   (-default,-negative).   If  no  algorithm  is selected then -default is
   assumed and the appropriate options (-theta,-gamma,-gammap) can  appear
   anywhere.

   -none,-packbits,-lzw,-predictor
          Tiff  files  can be compressed.  By default LZW decompression is
          used, but (apparently) some readers cannot read this, so you may
          want to select a different algorithm (-none,-packbits).  For LZW
          compression,  a  -predictor  value  of   2   forces   horizontal
          differencing  of  scanlines before encoding; a value of 1 forces
          no differencing.

   -msb2lsb,-lsb2msb
          These flags control fill order (default is -msb2lsb).

   -rowsperstrip
          This sets the number of rows in an image strip (data in the Tiff
          files generated by this program is stored in strips - each strip
          is compressed individually).  The default gives a strip size  of
          no more than 8 kb.

   -lowdotrange,-highdotrange
          These  options  set  tag values that may be useful for printers.
          They have not been tested.

   -knormal,-kremove,-konly
          These options modify the values written to the Tiff  file  after
          the  conversion  calculations  (described  below) are completed.
          They are useful only for testing and debugging the code.

          -kremove sets the black (K) layer to zero while -konly sets  all
          inks to the black value.

   -default,-negative
          -negative  selects  a  simple  algorithm that generates a colour
          negative.   None  of  the  following  options  apply   to   this
          algorithm, which is included as an example in the source to help
          implementors of other  conversions.   -default  is  not  needed,
          unless it is used to countermand a -negative on the same command
          line.  The default conversion from RGB to CMYK can  be  modified
          by altering the options listed below.

          The   CMYKTiff   web  site  includes  tests  on  the  conversion
          parameters.  The test images illustrate the command line options
          in practice and may make the following explanation clearer.

   -theta deg
          The  basic conversion from RGB to CMY uses C = 1-R, M = 1-G, Y =
          1-B.  -theta provides a simple correction for  any  colour  bias
          that  may  occur in the printed image because, in practice, inks
          do not exactly complement the primary colours.  It  rotates  the
          colours  by  the  amount given (deg) in degrees.  Unless you are
          trying to produce unusual effects you will  need  to  use  small
          values  (try generating three images at -10, 0 (the default) and
          10 degrees and seeing which has the best colour balance.

   -gamma n
          The  black  (K)  component  of  the  image  is   calculated   as
          min(C,Y,M).   -gamma  applies  a gamma correction to this level.
          In other words, the final black level is K  (normalised  to  the
          range  0  to 1) raised to the nth power.  In practice this means
          that a value greater than 1 makes the image lighter and a  value
          less than 1 makes the image darker.  The range of allowed values
          is 0.1 to 10.

   -gammap n
          This option controls the removal of CMY under K.   If  n  is  -1
          then  no  removal  occurs  and  C,  M, Y and K are calculated as
          above.  This means that, when printed, dark  areas  contain  all
          four  inks,  which can make high contrast areas, like lettering,
          appear fuzzy.

          By default, when -gammap is not given on the command  line,  the
          colours  are  reduced  in  dark  areas  by subtracting the black
          level.  The value subtracted is calculated with the  same  gamma
          correction   given   by  -gamma.   Hopefully  this  will  reduce
          fuzziness  without  changing  the  appearance   of   the   image
          significantly.

          If -gammap n is given, with n between 0.01 and 10, then black is
          still subtracted, but the subtracted value is calculated using n
          rather than any value supplied with -gamma.  For example, it may
          be best to only subtract black from the  coloured  inks  in  the
          very  darkest regions.  In that case, n should be a large value,
          such as 5.

BUGS

   This program is not self-contained.  It must be used  with  NetPbm  and
   libtiff must be available (libtiff is included in the 1mar94 release of
   NetPbm).

SEE ALSO

   pnmtotiff(1), tifftopnm(1), pnm(5)

AUTHOR

   Copyright (c) 1999 Andrew Cooke (Jara Software).   Released  under  the
   GPL  with  no  warranty.   See source or COPYRIGHT and LICENCE files in
   distribution for full details.

   Much of the code (and man page!) uses ideas from  other  pnm  programs,
   written  by  Jef Poskanzer (thanks go to him and libtiff maintainer Sam
   Leffler).  A small section of the code - some of the tiff tag  settings
   - is derived directly from pnmtotiff, by Jef Poskanzer, which, in turn,
   acknowledges Patrick Naughton with the following text:

          Derived by Jef Poskanzer from ras2tif.c, which is:

          Copyright (c) 1990 by Sun Microsystems, Inc.

          Author: Patrick J. Naughton naughton@wind.sun.com

          Permission to use, copy, modify, and  distribute  this  software
          and  its documentation for any purpose and without fee is hereby
          granted, provided that the above copyright notice appear in  all
          copies  and  that both that copyright notice and this permission
          notice appear in supporting documentation.

          This file is provided AS IS with no warranties of any kind.  The
          author  shall have no liability with respect to the infringement
          of copyrights, trade secrets or any patents by this file or  any
          part  thereof.   In  no  event will the author be liable for any
          lost  revenue  or  profits  or  other  special,   indirect   and
          consequential damages.

                            9 December 1999               pnmtotiffcmyk(1)





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.