I've been struggling with this the whole day and it can't be that difficult. I'll narrow the problem down to one line of code:
Iterator readers = ImageIO.getImageReadersByFormatName("tif");
I've seen a million examples of using this but not one of how to register the tiff image type. For me this line returns an empty iterator and if I iterate over all available types using ImageIO.getWriterFormatNames(), tiff is not among them. I've played around with putting what I think I need in the classpath for tiff classes and using ImageIO.scanForPlugins() which is supposed to search for and load image types. I can not get this to work. This can't be this difficult.
Please help!!!
Iterator readers = ImageIO.getImageReadersByFormatName("tif");
I've seen a million examples of using this but not one of how to register the tiff image type. For me this line returns an empty iterator and if I iterate over all available types using ImageIO.getWriterFormatNames(), tiff is not among them. I've played around with putting what I think I need in the classpath for tiff classes and using ImageIO.scanForPlugins() which is supposed to search for and load image types. I can not get this to work. This can't be this difficult.
Please help!!!