Skip to main content

[JAVA2D] OT: TIFF versus JPEG for document storage

7 replies [Last post]
Anonymous

Please excuse the off topic post...this is a forum of the most
knowledgeable imaging chaps I'm aware of, so I hope you might be able
to point me off in the right direction.

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.

Could anyone either a. offer an educated opinion, or b. point me
towards a discussion of this topic that offers a rational view? My
web search has been rather unfruitful to this point.

Thanks and Regards, Parna

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Brian Burkhalter

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=GU...
(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 listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Thad Humphries

Our Optix document imaging system (http://www.mindwrap.com/) defaults to TIFF
Group 4 for 1-bit black-and-white and JPEG for color and greyscale. This is
the case for any major document imaging system I've worked with over the last
twelve years. TIFF Group 4 is very efficient and it's lossless. It's only
drawback is that TIFF does not not display native in a web browser--you'll
need a plug-in or an applet.

JPEG is lossy. It's good for color and greyscale but not so good for black
and white, especially when compared to TIFF. On one project we used lossy
JPEG in 256 level of grey for fingerprints; no one, not even the fingerprint
officers, had any problem with image quality.

Both TIFF and JPEG are non-proprietary. For more information, see

http://www.libtiff.org/ and http://www.ijg.org/

On Thursday 02 June 2005 21:22, Parna Hiram wrote:
> Could anyone either a. offer an educated opinion, or b. point me
> towards a discussion of this topic that offers a rational view?  My
> web search has been rather unfruitful to this point.

--
Thad Humphries "...no religious test shall ever be required
Web Development Manager as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States." -Article VI

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Daniel Rice

I would be more concerned with what the jury thinks... :-)

Dan

Thad Humphries wrote:
> On one project we used lossy
> JPEG in 256 level of grey for fingerprints; no one, not even the fingerprint
> officers, had any problem with image quality.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Parna Hiram

Thanks to all for the very detailed information. It was very helpful.

Regards, Parna

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

ktingle
Offline
Joined: 2005-09-06
Points: 0

If you are dealing with black & white scanned documents, TIFF format with G4 encoded image data would probably be considered the standard approach.

Java advanced imaging has support for G4 if I remember correctly.

mars

Greetings Parna,
Maybe you'd wanna read up on licensing issues with those proprietory formats.
I wont mind storing docos in PNG format since it's GPL'd.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Parna Hiram

Mars,

The licenses issues don't concern me...only the technical viability.

Regards, Parna

On 6/2/05, mars wrote:
> Greetings Parna,
> Maybe you'd wanna read up on licensing issues with those proprietory formats.
> I wont mind storing docos in PNG format since it's GPL'd.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".