Skip to main content

HELP: accellerating reading TIFF group 4 fax images using ImageIO

1 reply [Last post]
harleydk
Offline
Joined: 2006-08-17
Points: 0

Hello everyone,

I need to load and display group 4 fax images in my application. I have implemented two solutions, one using the JAI, another using merely the ImageIO Tools. There seems to be a significant speed-increase when I use the JAI instead of the ImageIO Tools, but in favor of the simplicity of it all I would much rather prefer to use the ImageIO Tools. Is there a way to increase the accelleration with my application? I simply load the images into BufferedImages using the ImageIO.read( file )-command, but I'm guessing if somehow i can specify a group 4 fax decompressor for use with a TIFFImageReadParam, it might work a lot faster? Alas, I have tried my best to make it happen, but it's too high-brow for me :-(. Can anyone help?

Thank you in advance,

Morten

Reply viewing options

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

On Fri, 18 Aug 2006, jai-imageio@javadesktop.org wrote:

> Hello everyone,
>
> I need to load and display group 4 fax images in my application. I have implemented two solutions, one using the JAI, another using merely the ImageIO Tools. There seems to be a significant speed-increase when I use the JAI instead of the ImageIO Tools, but in favor of the simplicity of it all I would much rather prefer to use the ImageIO Tools. Is there a way to increase the accelleration with my application? I simply load the images into BufferedImages using the ImageIO.read( file )-command, but I'm guessing if somehow i can specify a group 4 fax decompressor for use with a TIFFImageReadParam, it might work a lot faster?

Certainly if you want to write a more performant T.6 decoder and tell the
reader to use it that would work.

> Alas, I have tried my best to make it happen, but it's too high-brow for me

Prior to decoding using the ImageIO approach try setting the system property
"com.sun.media.imageio.disableCodecLib" to "true" and let us know whether
things improve.

Brian

----------------
Brian Burkhalter
Java Media, Imaging, and Graphics
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net