aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Tiff images - get compression type? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Tiff images - get compression type?" Watch "Tiff images - get compression type?" New topic
Author

Tiff images - get compression type?

Ivan Bosnjak
Greenhorn

Joined: Jun 08, 2007
Posts: 15
Hi all!

I have a peace of code that reads a tiff image that goes something like this:



After I read my picture I would like to know which compression is used for this picture, LZW, G4, packbits...

I read about TIFFEncodeParam here:

http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/com/sun/media/jai/codec/TIFFEncodeParam.html

But I still can't figure out how to find the used compression. I would appreciate any help. Thanks in advance!
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282


What is it that is difficult? The return type is an int. What do you do on the basis of the compression type?
Michelle Gonzalez
Greenhorn

Joined: Aug 06, 2012
Posts: 5
As I was searching for how to use the getCompression function I saw this. I dont know exactly how to use it and if you could provided an example to how to use it with an input file stream that will be extremely helpful. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tiff images - get compression type?
 
Similar Threads
Java 2D, displaying an image
JAI with applet problem
HELP! finding image compression type
combining tif files with java
compressed Tiff