Menu ▾ ▴

#25 Failed saving 1-bit-per-pixel compressed TIFFs

open
nobody
None
5
2012-09-26
2009-09-07
Anonymous
No

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

Discussion


Log in to post a comment.