vanvalenlab / kiosk-imageJ-plugin

An ImageJ Plugin for interacting with the DeepCell Kiosk
Other
3 stars 2 forks source link

Temporarily save images that have an empty FileInfo.fileName. #21

Closed willgraf closed 3 years ago

willgraf commented 3 years ago

Fixes #20

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.