Failed saving 1-bit-per-pixel compressed TIFFs
Brought to you by:
jsacha
Hello,
when I try to save a binary image as compressed TIFF, ImageJ asks me if I want to save it as 1 bit per pixel image.
However, it fails saying:
java.lang.IllegalArgumentException: Input ByteProcessor has to have index color model with map size of 2, got 256.
at net.sf.ij.jaiio.BufferedImageCreator.createBinary(BufferedImageCreator.java:102)
at net.sf.ij.jaiio.BufferedImageCreator.create(BufferedImageCreator.java:77)
at net.sf.ij.jaiio.JAIWriter.write(JAIWriter.java:143)
at net.sf.ij.plugin.ImageIOSaveAsPlugin.write(ImageIOSaveAsPlugin.java:237)
at net.sf.ij.plugin.ImageIOSaveAsPlugin.run(ImageIOSaveAsPlugin.java:207)
[...]
Jan