Some software I need to use has created a strange PNG file that I can open only using the Image IO plugins on SourceForge.
When I drag & drop the file on ImageJ, a message says "Opening... [file path]" with a progress bar for less than 2 seconds. When the progress bar is about 2/3 or 3/4 of the way, it stops, with no open image, and no error message.
If I select Debug Mode I get:
openImage: "png", C:\data\images\Damis\DamisVignetting\2007-05-11UniformImages\vflip\Z15wLSCSettings.png
Z15wLSCSettings.png: new ByteProcessor
When I use the File-> Open... menu command I get an exception message:
java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 2592 height = 1944 #numDataElements 1 dataOff[0] = 0 is incompatible with ColorModel IndexColorModel: #pixelBits = 16 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@1f21c50 transparency = 1 transIndex = -1 has alpha = false isAlphaPre = false
at java.awt.image.BufferedImage.<init>(Unknown Source)
at ij.process.ByteProcessor.createBufferedImage(ByteProcessor.java:96)
at ij.process.ByteProcessor.createImage(ByteProcessor.java:71)
at ij.ImagePlus.setImage(ImagePlus.java:430)
at ij.ImagePlus.<init>(ImagePlus.java:106)
at ij.io.Opener.openJpegOrGif(Opener.java:331)
at ij.io.Opener.openImage(Opener.java:212)
at ij.io.Opener.openImage(Opener.java:248)
at ij.io.Opener.open(Opener.java:116)
at ij.io.Opener.openMultiple(Opener.java:96)
at ij.plugin.Commands.run(Commands.java:21)
at ij.IJ.runPlugIn(IJ.java:130)
at ij.Executer.runCommand(Executer.java:95)
at ij.Executer.run(Executer.java:49)
at java.lang.Thread.run(Unknown Source)
The Image IO plugin opens it correctly as a 2592x1944 16 bit image.
This happens in ImageJ 1.38r (and q and k) on Java 1.6.0_01 on Windows XP SP2.
I can email the image on request, but its 7,428 KB in size.
--
Harry Parker
Senior Systems Engineer
Digital Imaging Systems, Inc.
____________________________________________________________________________________Ready for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/