These images ARE ImagePlus instances but they are held in memory and do not have a fileNameattribute, and therefore cannot be found and uploaded. This PR checks to see if fileName is empty, and temporarily saves the image if it is. It also checks to see if the title of the image contains a .tif extension, and adds it if it's not there. IJ.saveAsTiff WILL add the extension but our file path may not reflect the extension.
Fixes #20
These images ARE
ImagePlus
instances but they are held in memory and do not have afileName
attribute, and therefore cannot be found and uploaded. This PR checks to see iffileName
is empty, and temporarily saves the image if it is. It also checks to see if thetitle
of the image contains a.tif
extension, and adds it if it's not there.IJ.saveAsTiff
WILL add the extension but our file path may not reflect the extension.