÷ą0įŲč‹’’’’óKń`y@@cmr10«ž“øJPEGTRAN(1)‘ JPEGTRAN(1)Žóņ"V @cmbx10¬žpģNAMEŽ«pģž%¤jpŽegtranó!",š@@cmsy10­ l« klossless ptransformation mof kJPEG l lesެž4²SYNOPSISŽóņ"V@@cmbx10®pģž%¤jpegtran« ’[óż':@@cmti10Ɛ koptions« 3] k[Ɛ k lename« 3]ެžCĄDESCRIPTIONŽ®pģž%¤jpegtran« pŽerforms ‰v’"arious †useful ‡transformations ˆof …JPEG † les.ņIt †can †translate ‡the †coßded †repre-Žž%¤sen’$tation Ōfrom Õone Õv’"arian’"t Ōof ŌJPEG Õto Õanother, Öfor Õexample Ųfrom Öbaseline ŲJPEG Öto Õprogressiv’%eŽž%¤JPEG&or%vice'v’"ersa.’It&can&also&pŽerform'some(rearrangemen’&ts&of%the&image&data,$for$exampleŽž%¤turning kan kimage mfrom llandscapąe lto kpŽortrait kformat lb’"y krotation.Ž®ž4²jpegtran« w’#orks b’"y rearranging the compressed data (DCT coßecien’&ts), without ev’#er fully decoąd-Žž%¤ingothepimage.ÜTherefore,sitsotransformationsqareolossless:stherepisononimagepdegradationoatnall,Žž%¤whic’$h Jw’#ould Jnot JbŽe Ktrue Kif Jy’"ou Jused® Ldjpeg« Üfollo’"w’#ed Kb’"y® Jcjpeg« Üto Jaccomplish Nthe Lsame Ncon’#v’"ersion.Žž%¤But|b’"y{the{same}tok’"en,®{jpegtran«cannot{pŽerform|lossy|opŽerations|suc’$hzas{c’#hangingzthe{imageŽž%¤qualit’"yże.Ž®ž4²jpegtran«Creads ±the °named ±JPEG/JFIF ± le, ±or °the ±standard ±input °if °no ° le ±is ±named, ²and °pro-Žž%¤duces na kJPEG/JFIF m le lon kthe lstandard loutput.ެž4²OPTIONSŽ«pģž%¤AllČswitc’%hĒnamesŹma’#yĒbŽeČabbreviated;ÉforĒexample,­Ź®optimize«^ma’#yĒbŽeČwritten­É®opt«Yor­Ē®o«.Žž%¤UppŽer×andÖlo’"w’#er×caseŁareŲequiv’#alen’#t.BBritishŁspßellingsŁareŲalsoŲacceptedŪ(e.g.,­Ų®optimise«),Žž%¤though kfor kbrevit’#y kthese nare lnot kmen’$tioned lbŽelo’#w.Žž4²Tżfo spßecify the coßded JPEG represen’&tation used in the output  le,® jpegtran«­accepts a subset ofŽž%¤the lswitc’%hes mrecognized ob’"y® kcjpeg«:Ž­ž4²®optimizeŽ«pģž%¤P’"erform moptimization mof ken’#trop’"y kencoąding kparameters.Ž­ž4²®progressiv’ eŽ«pģž%¤Create nprogressiv’%e lJPEG l le.Ž­ž4²®restartƐ 4NŽ«pģž%¤EmitłaųJPEGłrestartśmark’#erłev’#eryłNųMCUłro’"ws,śorłev’#eryśNłMCUśbloŽc’#ksśifóßź@@cmmi10± />Ɛ ūfožhopržiožhg.jpžigŽ«ž4²This mexample nrotates man kimage m90 kdegrees ocloßc’#kwise, ndiscarding man’"y kunrotatable ledge mpixels:Ž®pģž4²jpegtran­ ’®rot ž90 ż-trimƐ fožho.jpžig± />Ɛ ūfožho90.jpžkgެ‘’(ž4²ENVIR’ONMENTŽ®pģž%¤JPEGMEMŽ«pģž%¤IfŁthisŁen’#vironmen’$tŲv’"ariableŁisŁset,ŁitsŲv’"alueŲisŲtheŲdefaultŲmemoryŚlimit.CTheŁv’"alueŲisŽž%¤spßeci ed ³as ±describįed ±for °the­ ±®maxmemory« Hswitc’%h.®JPEGMEM« Bo’"v’"errides “the ²defaultŽž%¤v’"aluejspßeci edlwhenkthejprogramjw’#asjcompiled,landiitselfkisio’"v’"erriddenjb’"yhanhexplicitŽ­ž%¤®maxmemory«.ެ‘’(ž4²SEE ĖALSOŽ®pģž%¤cjpeg«(1),® mdjpeg«(1),® mrdjpgcom«(1),® pwrjpgcom«(1)Žž%¤Wżeallace,CGregoryCK.°¬"«TheDJPEGCStillBPictureDCompressionGStandard°"«,CComm’%unicationsDofBtheŽž%¤A’"CM, lApril k1991 k(v’"ol. k34, kno. k4), kpp. k30-44.ެž4²A’UTHORŽ«pģž%¤Indepąenden’$t kJPEG lGroupެž4²BUGSŽ«pģž%¤Arithmetic ncoßding kis lnot ksuppßorted lfor klegal lreasons.Žž4²The Btransform Boptions Acan't Atransform AoŽdd-size Cimages BpŽerfectlyżh.ŖUse­ A®trim« Óif ?y’"ou ?don't ?lik’"e @theŽž%¤results nwithout lit.Žž4²The ēen’#tire ęimage ēis ęread ęin’"to åmemory čand åthen ęwritten ēout åagain, åev’#en ęin åcases źwhere éthis ēisn'tŽž%¤really ˆnecessaryżj.ņExpŽect ‰sw’$apping ‡on ‡large ˆimages, Šespąecially ‰when ˆusing ‡the ‡more ˆcomplex ‰trans-Žž%¤form loptions.Ž‘ vŸž3 kAugust l1997‘kĮ3ŽŒų!Oą0įŲč iŌóKń`y@@cmr10óņ"V @cmbx10ó!",š@@cmsy10óņ"V@@cmbx10óż':@@cmti10óßź@@cmmi10ł+Śßßßßßß