We're Hiring!

Using Bio-Formats to save as TIFF

Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats
Please note:
Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats

If you are having trouble with image files, there is information about reporting bugs in the Bio-Formats documentation. Please send us the data and let us know what version of Bio-Formats you are using. For issues with your code, please provide a link to a public repository, ideally GitHub.

Using Bio-Formats to save as TIFF

Postby Oli » Tue Jul 03, 2012 8:36 am

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
Oli
 
Posts: 71
Joined: Mon Nov 29, 2010 4:57 pm

Re: Using Bio-Formats to save as TIFF

Postby mlinkert » Wed Jul 04, 2012 3:12 pm

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
User avatar
mlinkert
Team Member
 
Posts: 353
Joined: Fri May 29, 2009 2:12 pm
Location: Southwest Wisconsin

Re: Using Bio-Formats to save as TIFF

Postby Oli » Wed Jul 11, 2012 8:06 am

Hi Melissa,

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

Best!

Oli
Oli
 
Posts: 71
Joined: Mon Nov 29, 2010 4:57 pm


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest