If your choices are JPEG or TIFF and your documents are
monochrome/bilevel/black & white then TIFF is the clear choice. JPEG is
intended primarily for continuous tone imagery such as digitized photographs.
For an overview of JPEG please see "The JPEG still picture compression
standard" by Wallace

http://portal.acm.org/ft_gateway.cfm?id=103089&type=pdf&coll=GUIDE&dl=GUIDE&CFID=45298927&CFTOKEN=16636419
(PDF 3.29 Mb)

Baseline JPEG is a lossy format and if JPEG is used with images containing
sharp edges then as the compression ratio is increased then you are more
likely to see compression artifacts near the edges. TIFF on the other hand has
three innate compression types which are specific to bilevel images. These are
modified Huffman compression, group 3 fax (also known as CCITT or ITU T.4)
compression, group 4 fax (also known as CCITT or ITU T.6) compression all of
which are lossless compression methods.

As far as I know among the formats supported by J2SE, JAI-Image I/O Tools, and
JAI, TIFF is by far the most widely used for document imaging.

Brian

On Thu, 2 Jun 2005, Parna Hiram wrote:

> We're considering the best option for storing documents in an
> imaging-like way, so that a user might scan a document and then use
> the application to store it into a database.  In our process of
> evaluating this process, we've come to a dilemma as to whether jpg or
> tiff offers the better storage and retrieval format.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to