Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Droplet_Actions
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Balint Balazs
Droplet_Actions
Commits
e8985b93
Commit
e8985b93
authored
7 years ago
by
Balint Balazs
Browse files
Options
Downloads
Patches
Plain Diff
added openTifSaveAsPng.ijm
parent
58bc881e
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openTifSaveAsPng.ijm
+17
-0
17 additions, 0 deletions
openTifSaveAsPng.ijm
with
17 additions
and
0 deletions
openTifSaveAsPng.ijm
0 → 100644
+
17
−
0
View file @
e8985b93
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();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment