//script parameters #@ File(label="Directory", style="directory") dir #@ String (label="Apply", choices={"None", "8-bit", "Normalize"}, style="radioButtonHorizontal") apply #@ String (label="Output", choices={"TIF", "HDF5"}, style="radioButtonHorizontal") format #@ String (label="Extension", description="Enter the extension of the files to be transformed. Image extensions: tif, png, jpg, others...") extension #@ String (label="Postfix", description="Enter a postfix to tag the output folder") postfix print("\\Clear"); original=File.getName(dir); list=getFileList(dir); output=File.getParent(dir)+File.separator+original+"_"+postfix; //check if the folder contains the specified files count=0; for (i=0; i