Re: batch conversion of a folder

Posted by Younes Leysi on
URL: http://imagej.273.s1.nabble.com/batch-conversion-of-a-folder-tp3696887p3696889.html

Hello Curtis,

Thank you for the link. i saved that file as "directory_call.txt" in
"imageJ/macros/" folder. i run the macro first through
"Menu/plugins/macro/run", which asked me to select the directory, i
chose one (for example F:\test_conversion\day5c which had 49
subfolders), then i run the batch converter plugin. that plugin just
converted the images inside the subfolder that i had chosen, nothing
else. i did not see any benefits of running that macro. i have also
tried to run macro after that plugin, but nothing happened. is there
other procedure that i should follow to joint the macro and plugin
together?

Thanks and Regards,
Younes

On Wed, Mar 12, 2008 at 2:06 PM, Curtis Rueden <[hidden email]> wrote:

> Hi Younes,
>
> Take a look at the "list files recursively" macro:
> http://rsb.info.nih.gov/ij/macros/ListFilesRecursively.txt
>
> -Curtis
>
>
> On Wed, Mar 12, 2008 at 12:43 PM, Younes Leysi Derilou <
> [hidden email]> wrote:
>
> > Hello ImageJ Lovers,
> >
> > I would like to convert 12-bit tiff images to 8-bit tiff images in a
> > main folder which has already several sub-folders. the sub-folders
> > have thousands of images which can be easily converted one-by-one,
> > using the "batch converter" plugin  from the following link. the
> > problem is that I have to use this plugin for all sub-folders one by
> > one and the number of the sub-folders are too much. I am wondering if
> > there is a way to run this plugin for the main folder; i.e. ask a
> > macro to do the conversion job for all other sub-folders. any
> > suggestions are highly appreciated.
> > http://rsb.info.nih.gov/ij/plugins/batch-converter.html
> >
> > Truly yours,
> > Younes
> > --
> > Younes Leysi
> > "Life is a song, sing it."
> >
>



--
Younes Leysi
"Life is a song, sing it."