Re: saveas TIFF without get filelist
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Nov 19, 2014; 7:21pm
URL: http://imagej.273.s1.nabble.com/saveas-TIFF-without-get-filelist-tp5010548p5010552.html
On Nov 19, 2014, at 12:57 PM, Emanuele Martini <
[hidden email]> wrote:
>
> Yes I try with it...
> sorry i lost a plus in my first post.
> My try that doesn't work is exactly that :)
> saveAs("TIFF", save_dir + "PR_" +image_name);
>
> I really think that is a problem of spaces presents in my path and in my
> image name...but i don't know how to resolve it.
Spaces should not be a problem but you need to add a path separator if ‘save_dir’ does not end with one. The following example, which has a space in both the path and in the image name, works as expected:
dir = "/Users/wayne/Images/test dir";
name = "image name.tif";
saveAs("tif", dir +"/" +name);
-wayne
> -----
> Image Analyst @Ifom-IEO research campus -MI-
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/saveas-TIFF-without-get-filelist-tp5010548p5010551.html> Sent from the ImageJ mailing list archive at Nabble.com.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html