AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
February 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2007.02.05 03:28 "Request help On OJPEG Compression In Libtiff", by Steven Lim
2007.02.05 18:19 "Re: Request help On OJPEG Compression In Libtiff", by Chris Cox
2007.02.05 19:08 "Re: Request help On OJPEG Compression In Libtiff", by Joris Van Damme
2007.02.05 19:14 "Re: Request help On OJPEG Compression In Libtiff", by Chris Cox
2007.02.05 19:29 "Re: Request help On OJPEG Compression In Libtiff", by Joris Van Damme
2007.02.05 18:49 "Re: Request help On OJPEG Compression In Libtiff", by Joris Van Damme

2007.02.05 18:49 "Re: Request help On OJPEG Compression In Libtiff", by Joris Van Damme

Steven,

Steven Lim wrote:
> Compression? The version of libtiff i grab it from CVS and it's
> said no required hack on libjpeg, and i try just to use it by
> calling TIFFSetField(tiffout, TIFFTAG_COMPRESSION,
> COMPRESSION_OJPEG), and this seem not correct.

I misunderstood you before, or either you misunderstand TIFF decompression 
using LibTiff.

There is support for decompressing most flavours of bad old OJPEG. There is 
no support for compressing with this scheme. There's plenty of good reason 
for that decision, mostly being that the original OJPEG spec is totally 
flawed and breaks TIFF, and furthermore is ambigious, which lead to many 
different mutually incompatible implementations by vendors. These days, 
OJPEG is only written by either a) vendors who have an interest in locking 
their users even when the latter try and use an open file format, and b) 
vendors who have a need to be compatible with the a).

If you need JPEG compression in TIFF, you need to look into new-style JPEG 
compression.

If you need OJPEG decompression, you don't need to set the 
TIFFTAG_COMPRESSION field. Rather, consult the LibTiff docs, namely 
preferably the part on how to use the RGBAImage interface, as that'll take 
care of desubsampling issues for you.


Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html