I have a problem where I’m not able to load my RAW-file for generating a multispectral image.
The RAW-file is a .CR3 from a Canon R5.
I use a Macbook Air M2 (2022); OS: Sonoma 14.2.1
ImageJ is 1.54g; and the one made for the ARM Mac’s.
I have no problems with using the test images: “Rudbekia Flower Sample”, but my .CR3 file will not load when promted to choose the file.
The following windows pop op after it tries to load the file:
1st small window “No image”:
There are no images open in line 63
run (”32-bit” <)> ;
2nd small window “No image”:
There are no images open in line 367
photoID = getImageID ( <)> ;
3rd larger window “Exception”:
ImageJ 1.54g; Java 13.0.6 [64-bit]; Mac OS X 14.2.1; 275MB of 3000MB (9%)
Macro line number: 55
java.lang.NegativeArraySizeException: -256945280
at ij.io.ImageReader.readRGB48(ImageReader.java:594)
at ij.io.ImageReader.readPixels(ImageReader.java:882)
at ij.io.FileOpener.readPixels(FileOpener.java:593)
at ij.io.FileOpener.open(FileOpener.java:119)
at ij.io.FileOpener.openImage(FileOpener.java:53)
at ij.io.Opener.openTiff2(Opener.java:1132)
at ij.io.Opener.openTiff(Opener.java:931)
at ij.io.Opener.openImage(Opener.java:335)
at ij.io.Opener.openImage(Opener.java:241)
at ij.io.Opener.open(Opener.java:104)
at ij.IJ.open(IJ.java:1959)
at ij.macro.Functions.open(Functions.java:3061)
at ij.macro.Functions.doFunction(Functions.java:159)
at ij.macro.Interpreter.doStatement(Interpreter.java:281)
at ij.macro.Interpreter.doBlock(Interpreter.java:715)
at ij.macro.Interpreter.doStatement(Interpreter.java:326)
at ij.macro.Interpreter.doIf(Interpreter.java:1116)
at ij.macro.Interpreter.doStatement(Interpreter.java:302)
at ij.macro.Interpreter.doStatements(Interpreter.java:267)
at ij.macro.Interpreter.run(Interpreter.java:163)
at ij.macro.Interpreter.run(Interpreter.java:93)
at ij.macro.Interpreter.run(Interpreter.java:107)
at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:164)
at ij.plugin.Macro_Runner.runMacroFile(Macro_Runner.java:147)
at ij.plugin.Macro_Runner.run(Macro_Runner.java:61)
at ij.IJ.runPlugIn(IJ.java:216)
at ij.Executer.runCommand(Executer.java:152)
at ij.Executer.run(Executer.java:70)
at ij.IJ.run(IJ.java:326)
at ij.IJ.run(IJ.java:337)
at ij.macro.Functions.doRun(Functions.java:703)
at ij.macro.Functions.doFunction(Functions.java:99)
at ij.macro.Interpreter.doStatement(Interpreter.java:281)
at ij.macro.Interpreter.doBlock(Interpreter.java:715)
at ij.macro.Interpreter.doStatement(Interpreter.java:326)
at ij.macro.Interpreter.doIf(Interpreter.java:1116)
at ij.macro.Interpreter.doStatement(Interpreter.java:302)
at ij.macro.Interpreter.doBlock(Interpreter.java:715)
at ij.macro.Interpreter.doStatement(Interpreter.java:326)
at ij.macro.Interpreter.doFor(Interpreter.java:637)
at ij.macro.Interpreter.doStatement(Interpreter.java:308)
at ij.macro.Interpreter.doStatements(Interpreter.java:267)
at ij.macro.Interpreter.run(Interpreter.java:163)
at ij.macro.Interpreter.run(Interpreter.java:93)
at ij.macro.Interpreter.run(Interpreter.java:107)
at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:164)
at ij.plugin.Macro_Runner.runMacroFile(Macro_Runner.java:147)
at ij.plugin.Macro_Runner.run(Macro_Runner.java:61)
at ij.IJ.runPlugIn(IJ.java:216)
at ij.Executer.runCommand(Executer.java:152)
at ij.Executer.run(Executer.java:70)
at java.base/java.lang.Thread.run(Thread.java:830)
Have you tried lossless compression of your RAW files?