Page 1 of 1

Using Bio-Formats to save as TIFF

PostPosted: Tue Jul 03, 2012 8:36 am
by Oli
Hello,
When trying to use the exporter to save files as TIFF I get the following error.

Note that file "ttt.tif" has just been created, I was not trying to rewrite a previous file.

Any help is appreciated.

java.io.FileNotFoundException: C:\Users\oburri\Desktop\Dutto\ttt.tif (The process cannot access the file because it is being used by another process)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at loci.common.NIOFileHandle.<init>(NIOFileHandle.java:114)
at loci.common.NIOFileHandle.<init>(NIOFileHandle.java:125)
at loci.common.NIOFileHandle.<init>(NIOFileHandle.java:134)
at loci.common.Location.getHandle(Location.java:294)
at loci.common.Location.getHandle(Location.java:265)
at loci.common.RandomAccessOutputStream.<init>(RandomAccessOutputStream.java:54)
at loci.formats.out.TiffWriter.setupTiffSaver(TiffWriter.java:402)
at loci.formats.out.TiffWriter.setId(TiffWriter.java:133)
at loci.plugins.out.Exporter.run(Exporter.java:526)
at loci.plugins.LociExporter.run(LociExporter.java:75)
at ij.plugin.filter.PlugInFilterRunner.processOneImage(PlugInFilterRunner.java:256)
at ij.plugin.filter.PlugInFilterRunner.<init>(PlugInFilterRunner.java:105)
at ij.IJ.runUserPlugIn(IJ.java:187)
at ij.IJ.runPlugIn(IJ.java:152)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at ij.Command.runPlugIn(Command.java:146)
at ij.Command.runCommand(Command.java:95)
at ij.Executer.run(Executer.java:64)
at java.lang.Thread.run(Thread.java:662)




Best, Oli

Re: Using Bio-Formats to save as TIFF

PostPosted: Wed Jul 04, 2012 3:12 pm
by mlinkert
Hi Oli,

Could you please try updating to the latest trunk build of Bio-Formats? The first entry here is what you'll need:

http://loci.wisc.edu/bio-formats/downloads

I can't duplicate the error that you're seeing, and from the message it looks like you have a fairly old version installed, so hopefully upgrading just solves the problem.

If you see a similar error after upgrading, could you please make a small ImageJ macro that reproduces the problem and paste it here?

Regards,
-Melissa

Re: Using Bio-Formats to save as TIFF

PostPosted: Wed Jul 11, 2012 8:06 am
by Oli
Hi Melissa,

Thank you for your reply. The saving seems to work properly now.

Best!

Oli