Login  Register

Re: saveas TIFF without get filelist

Posted by Lai Ding on Nov 19, 2014; 5:54pm
URL: http://imagej.273.s1.nabble.com/saveas-TIFF-without-get-filelist-tp5010548p5010550.html

Try

 saveAs("TIFF", save_dir + "PR_" +image_name);

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Emanuele Martini
Sent: Wednesday, November 19, 2014 12:13 PM
To: [hidden email]
Subject: saveas TIFF without get filelist

Hi to all,
I have a problem with saving as tiff an opened image in a macro/function.

I write a macro that open an image from a path and process it and then want to save to a saving folder:
1) open image_path=path/image1.tif
2) doing something
3) save to save_path=save_dir/PR_image1.tif

I try with this code saveAs("TIFF", save_dir + "PR_" image_name); where save_dir is a string path like = "path/ema/exp1"
and i retrieve the image name after opening the image using getTitle().

someone has some ideas to figure out from this, I think, simple problem?
Thanks,
Emanuele Martini

P.S.: the name of the image and the save_dir sometimes have spaces...so maybe it could be a problem




-----
Image Analyst @Ifom-IEO research campus -MI-
--
View this message in context: http://imagej.1557.x6.nabble.com/saveas-TIFF-without-get-filelist-tp5010548.html
Sent from the ImageJ mailing list archive at Nabble.com.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html