Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!claris!UUCP!peirce From: peirce@outpost.UUCP (Michael Peirce) Newsgroups: comp.sys.mac.programmer Subject: Re: using QuickTime compression Message-ID: <0B01FFFB.hx0p0c@outpost.UUCP> Date: 12 Jun 91 23:10:50 GMT Reply-To: peirce@outpost.UUCP (Michael Peirce) Organization: Peirce Software Lines: 18 X-Mailer: uAccess - Mac Release: 1.1.b3 In article <1991Jun11.181453.7921@athena.mit.edu>, captkidd@athena.mit.edu (Ivan Cavero Belaunde) writes: > In article <0B01FFFB.hsyi3b@outpost.UUCP> peirce@outpost.UUCP (Michael Peirce) writes: > >I tried the following code fragment: > > cPict = (PicHandle) NewHandle(sizeof(Picture)); > > if ((stat = CompressPicture(rPict,cPict,codecMaxQuality,'jpeg')) != noErr) { > > NumToString(stat,statStr); > > DebugStr(statStr); > > } > > The codec type for JPEG compression is 'JPEG', not 'jpeg'. This does the trick. Now to get Apple to correct their documentation. :-) -- Michael Peirce -- outpost!peirce@claris.com -- Peirce Software -- Suite 301, 719 Hibiscus Place -- Macintosh Programming -- San Jose, California 95117 -- & Consulting -- (408) 244-6554, AppleLink: PEIRCE