Login  Register

Re: Saving a stack of .tif images with long filenames

Posted by Michael Schmid on Jun 11, 2015; 8:28pm
URL: http://imagej.273.s1.nabble.com/Saving-a-stack-of-tif-images-with-long-filenames-tp5013132p5013136.html

Hi Alicia,

you are right, the StackWriter plugin uses
  ImageStack.getShortSliceLabel
which truncates long slice labels to 60 characters.
You could write a short macro that loops over the slices and uses
  getMetadata("Label")
to retrieve the full slice labels. Unfortunately, this won't be as
comfortable as the StackWriter, e.g. it will be much more difficult to ask
the user in advance if it would overwrite a file.

Michael
____________________________________________________________

On Thu, June 11, 2015 19:50, Alicia wrote:

> Hi all,
> I am trying to save a stack of ~5000 .tif images using File > Save As >
> Image Sequence. However, I am having a problem using the "Use slice labels
> as file names" option (I only end up with one saved file since most of
> each filename is cut off). It seems that there is a character limit for
> the slice labels (~60 characters). Does anyone know if there is a way to
> increase this?
> Thanks in advance for your help!
> Best,Alicia
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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