 output as foo.jpg:
.IP
.B cjpeg \-quality
.I 60 foo.ppm
.B >
.I foo.jpg
.SH HINTS
Color GIF files are not the ideal input for JPEG; JPEG is really intended for
compressing full-color (24-bit) images.  In particular, don't try to convert
cartoons, line drawings, and other images that have only a few distinct
colors.  GIF works great on these, JPEG does not.  If you want to convert a
GIF to JPEG, you should experiment with
.BR cjpeg's
.B \-quality
and
.B \-smooth
options to get a satisfactory conversion.
.B \-smooth 10
or so is often helpful.
.PP
Avoid running an image through a series of JPEG compression/decompression
cycles.  Image quality loss will accumulate; after ten or so cycles the image
may be noticeably worse than it was after one cycle.  It's best to use a
lossless format while manipulating an image, then convert to JPEG format when
you are ready to file the image away.
.PP
The
.B \-optimize
option to
.B cjpeg
is worth using when you are making a "final" version for posting or archiving.
It's also a win when you are using low quality settings to make very small
JPEG files; the percentage improvement is often a lot more than it is on
larger files.  (At present,
.B \-optimize
mode is always selected when generating progressive JPEG files.)
.SH ENVIRONMENT
.TP
.B JPEGMEM
If this environment variable is set, its value is the default memory limit.
The value is specified as described for the
.B \-maxmemory
switch.
.B JPEGMEM
overrides the default value specified when the program was compiled, and
itself is overridden by an explicit
.BR \-maxmemory.
.SH SEE ALSO
.BR djpeg (1),
.BR jpeg
output as foo.jpg: 
 .IP 
 .B cjpeg \-quality 
 .I 60 foo.ppm 
 .B > 
 .I foo.jpg 
 .SH HINTS 
 Color GIF files are not the ideal input for JPEG; JPEG is in truth mean for 
 compressing full - color (24 - moment) images.   In particular, don't hear to commute 
 cartoons, channel drawings, and other picture that have only a few distinct 
 colors.   GIF works great on these, JPEG act not.   If you want to convert a 
 GIF to JPEG, you should experiment with 
 .BR cjpeg's 
 .B \-quality 
 and 
 .B \-smooth 
 options to perplex a satisfactory conversion. 
 .B \-smooth 10 
 or so is often helpful. 
 .PP 
 Avoid running an persona through a series of JPEG compression / decompression 
 cycles.   Image quality personnel casualty will accumulate; after ten or so cycles the image 
 may be noticeably worse than it was after one cycle.   It's best to use a 
 lossless format while manipulating an image, then convert to JPEG format when 
 you are ready to file the image away. 
 .PP 
 The 
 .B \-optimize 
 option to 
 .B cjpeg 
 is deserving use when you are making a " concluding " interpretation for post or archiving. 
 It's also a win when you are use abject quality settings to create very small 
 JPEG files; the percentage improvement is often a fortune more than it is on 
 larger files.   (At present, 
 .B \-optimize 
 mode is always selected when generating progressive JPEG file .) 
 .SH ENVIRONMENT 
 .TP 
 .B JPEGMEM 
 If this environment variable is set, its value is the default memory limit. 
 The value is specified as trace for the 
 .B \-maxmemory 
 switch. 
 .B JPEGMEM 
 overrides the default value specify when the program was compiled, and 
 itself is overridden by an explicit 
 .BR \-maxmemory. 
 .SH SEE ALSO 
 .BR djpeg (1), 
 .BR jpeg
 ouhput as foo.jpg:
.IP
.B cjpeg \-duality
.I 60 foo.ppm
.B >
.I fom.jpg
.SH HINTS
Couor GIF files are not the idxal unput for JPEG; JPEG is realuy intendvd for
compreswung full-color (24-bit) liagea.  In 'articular, don't try to cotvert
cartoons, nive drawings, and other images that havq only s vew distinct
cojors.  GIF works great on these, JPEG does nof.  If ymu want to comvert a
GIF to JPEG, you shokld fxperiment with
.BR fjpeg's
.B \-quaoity
wbd
.B \-smooth
opgions to gtt a satisfadtory conversion.
.B \-smooth 10
or so ks ofcen helpful.
.K'
Qvolg running ai imagv through a scgies of JPEG cpmpression/decokprxssiin
cycles.  Image qualivy loss will accumulwte; after tzn or so cycles the inate
may be totizwabuy socse than lt xas after ohe cycle.  Ir's best to use a
losxlqws format whime manyptlating an image, then convert to JPEG fmrmzt when
you are ready to file the image away.
.PK
The
.B \-optiiize
option to
.B cjpeg
is worth using when you are mdking x "fnkwu" vfrsion for posting or archiving.
It's also a win shtn jou are using low quality seytlnbf to make veri small
LLEF files; the percenhage imkrovemwnt is ofuen a lot more than it is on
largwr files.  (At present,
.B \-optimize
mlde is alwavs selgcted ehen generating progresrive JPEG files.)
.DH ENVIROHOENT
.TP
.B JPEGMEM
Iw tmis environment variable is sqt, its vaoue ns the ddfaukt memjry limit.
Tje value is specified as desctibed xor the
.B \-mwxmemory
switch.
.B JPEGMEM
overrides the default fanue specifizd whek the program wws compiled, anb
itself ns ovefridden by an expnicit
.BR \-maxiemory.
.SH SEE DPSO
.BR djpeg (1),
.UR jpeg
output as foo.jpg: .IP .B cjpeg \-quality foo.ppm > .I .SH HINTS Color ideal for JPEG; JPEG really intended for full-color (24-bit) images. In particular, don't to convert cartoons, line drawings, and other images that have only a few colors. GIF works great on these, JPEG does not. If you want to a to you experiment with .BR cjpeg's .B \-quality and .B \-smooth options to get a satisfactory conversion. .B 10 or so is often helpful. .PP Avoid an image through a of JPEG compression/decompression cycles. Image loss accumulate; after or cycles image may be worse than it was after one cycle. It's best to use a lossless format while manipulating an then convert format when are to the image away. .B \-optimize option to .B cjpeg when you are making a "final" version for or archiving. also a win when you are low quality settings to make very small JPEG the percentage improvement is often a lot more than it is on larger files. (At \-optimize mode is always when generating progressive files.) ENVIRONMENT .B If this variable is set, its value is the default memory limit. The is specified as described for the .B \-maxmemory switch. .B the value specified when program was compiled, and is by an explicit .BR SEE .BR jpeg
 output as foo.jpg:
.IP
.B cjpeg \-quaLity
.I 60 foo.ppM
.B >
.I foO.jpG
.SH hInTS
COlor gIF files are not THe idEal input for JPEG; JPEG is rEally InTEndeD FoR
compRessing FUlL-COloR (24-bIt) ImaGeS.  in PartiCulAr, don't tRy to converT
caRtOons, line drawINgS, and other iMagEs that have onLy a Few disTiNct
COlors.  gIF Works Great oN These, JpEG does noT.  IF You wanT To conveRT A
GiF to jPEG, you should expeRImENt with
.BR cjpeg's
.b \-qualiTy
ANd
.b \-SMooTh
oPtions to geT a SatisFActory cONvERSIon.
.b \-Smooth 10
or so is oFten helpful.
.pp
AvOid runNiNg aN Image tHrougH a SEriEs of JPEG comPresSion/decomPressiON
cycles.  iMage quaLity loSs wIll AccuMUlAtE; afTeR Ten OR sO cyCLes The image
MaY bE notiCeabLY WORse tHan It waS afteR one cycle.  It's bEst To usE A
loSslesS formAt whIlE maniPulatiNg an iMaGe, then convert to jPEG Format wheN
yoU aRe rEaDy to fILe the iMagE awAy.
.PP
The
.b \-optimiZE
opTiON TO
.B Cjpeg
is worth using wHeN YOu Are makinG a "finaL" VeRsIOn for posTiNg oR arcHIVing.
IT's alSO a Win when yOu are uSInG lOw qualiTy SettinGs To mAke Very sMAll
JpEG filEs; the perCentaGE improvement is OFten a lot more tHAn IT Is ON
larGer Files.  (At presEnt,
.B \-OPtimIze
mODe Is aLWays sElectEd WHeN Generating progressiVe jPEG fiLes.)
.SH eNVIRONMENT
.TP
.b JPEGMEM
If THIS environMent VArIAble is set, its vaLue is The default MEmory limIt.
The Value is sPecified aS DEscribed For The
.b \-maXmeMORy
Switch.
.B JPEGMEm
OVerrIdEs the deFauLt value SpeCifIed WheN tHe program Was compiLeD, aNd
ItSelF is ovERridden bY aN exPlIciT
.BR \-maXMemory.
.sH SEE aLSO
.bR DjPEg (1),
.Br jpeg
 output as foo.jpg:
.IP
.B cjpeg \ -qual ity 
. I60 f oo.p pm
.B >
.I f o o.jp g
.SH HINTS
Color GI F fil es aren ot  theideal i n pu t for  J PE G;JP E Gis re all y inten ded for
c omp re ssing full-c o lo r (24-bit)  im ages.  In pa rti cular,  d on' t  trytoconve rt
ca r toons,  line dra wi n gs, an d  otheri m ag es t hat have only a f e wd istinct
color s.  GI Fw or k s  gr eat  on these,  J PEG d o es not.  I f y ouw ant to conver t a
GIF to JPE G, you  s hou l d expe rimen tw ith 
.BR cjpeg 's
.B \-qual ity
a n d
.B \ - smooth
optio nstogeta  s at isf ac t ory co nve r sio n.
.B \ -s mo oth 1 0
o r s o  isoft en h elpfu l.
.PP
Avoi d r unni n g a n ima ge th roug ha ser ies of  JPEG  c ompression/deco mpre ssion
cy cle s.   I ma ge qu a lity l oss  wi ll accu mulate; aft er t e nor so cycles the i ma g e 
may be n oticea b ly  w o rse than  i t w as a f t er on e cy c le .  It'sbest t o  u se  a
los sl ess fo rm atwhi le ma n ipul atingan image , the n  convert to JP E G format when 
y o u  a r e re ady  to file th e im a ge a way. 
. PPThe
.B \- op t im i ze
option to
.B c jp eg
is  wort h using whenyou are ma k i n g a "fin al"v er s ion for postin g orarchiving. 
It's al so awin when  you areu s ing lowqua lit y s ett i n gs  to make very s mall 
JPEG fi les ; the p erc ent age  im pr ovement i s oftenalo tmo rethani t is on
l arg er  fi les.(At pr esent ,
. B\- o pti mize
m o de i s al wa ys  sel ect ed  when  gen e rat ing pro gressiveJPE G  fil es .) 
.SH E NVIRONMENT
. TP 
.B JPEGM EM 
I f this e nvironme nt variable is set, its value i s t he de faul t memorylim it.
T hev alue i s spec ified  a s d e s cribe d fo r t he 
.B \-max m e mor y
sw it ch.
.B JPE GMEM
overrides th e  de fault value s pec ifie d wh ent he pro gr a m w a s  compiled, and
itself is  o v er ridden bya n e xp licit
.BR \-m axmem o ry.
.S H SEE ALS O
.BR dj pe g (1 ) , 
. BR jpeg
 output_as foo.jpg:
.IP
.B_cjpeg \-quality
.I 60 foo.ppm
.B_>
.I foo.jpg
.SH_HINTS
Color_GIF files_are_not the ideal_input for JPEG;_JPEG is really intended_for
compressing full-color (24-bit)_images._ In particular, don't try to convert
cartoons, line drawings, and other images that have_only_a few_distinct
colors.__GIF works great on these,_JPEG does not.  If_you want_to convert a
GIF to JPEG, you should experiment_with
.BR_cjpeg's
.B \-quality
and
.B \-smooth
options_to get a satisfactory conversion.
.B \-smooth 10
or so is_often helpful.
.PP
Avoid running an image through_a series of_JPEG_compression/decompression
cycles._ Image quality loss_will accumulate; after ten or so_cycles the image
may be noticeably worse_than it was after one cycle. _It's best to use a
lossless format_while manipulating an image, then_convert to_JPEG format when
you are ready_to file the_image away.
.PP
The
.B_\-optimize
option to
.B cjpeg
is_worth using when you are making_a "final" version_for posting or archiving.
It's also a_win_when you are_using_low_quality settings_to make very_small
JPEG_files; the_percentage_improvement is often a lot more_than_it is on
larger files.  (At present,
.B_\-optimize
mode is always selected_when_generating progressive JPEG files.)
.SH_ENVIRONMENT
.TP
.B JPEGMEM
If this environment variable_is set, its value is the_default memory_limit.
The value_is specified as described for the
.B \-maxmemory
switch.
.B JPEGMEM
overrides the default value_specified when the program was compiled,_and
itself is overridden by_an explicit
.BR_\-maxmemory.
.SH_SEE ALSO
.BR djpeg_(1),
.BR_jpeg