Skip to content
Snippets Groups Projects
Commit e8985b93 authored by Balint Balazs's avatar Balint Balazs
Browse files

added openTifSaveAsPng.ijm

parent 58bc881e
Branches master
No related tags found
No related merge requests found
path=getArgument();
open(path);
folder = File.getParent(path);
filename = File.getName(path);
//print(folder);
newname = substring(filename,0,lastIndexOf(filename,".")) + ".png";
//print(newname);
newfolder = folder + File.separator + "png";
if (!File.exists(newfolder)) {
File.makeDirectory(newfolder);
}
newpath = newfolder + File.separator + newname;
//print(newpath);
run("RGB Color");
saveAs("PNG", newpath);
close();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment