// Batch Convert // // This macro convert all the files in a folder to TIFF, 8-bit TIFF, // JPEG, GIF, PNG, PGM, BMP, FITS, Text Image, ZIP or Raw // format. Three dialog boxes are displayed. Select the source // folder in the first, the format in the second and the destination // folder in the third. Batch_Converter, a similar plugin is at // http://rsb.info.nih.gov/ij/plugins/batch-converter.html dir1 = getDirectory("Choose Source Directory "); format = getFormat(); dir2 = getDirectory("Choose Destination Directory "); list = getFileList(dir1); setBatchMode(true); for (i=0; i