Skip to content

Commit

Permalink
Update img.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyeh committed May 24, 2024
1 parent 5f0b85d commit d958c8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/img.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,14 @@ int img(tipl::program_option<tipl::out>& po)
return 0;
}
}
if(po.has("output"))
{
tipl::out() << "saving output";
if(!var_image.command("save",po.get("output")))
{
tipl::out() << "ERROR: " << var_image.error_msg;
return 0;
}
}
return 1;
}

0 comments on commit d958c8d

Please sign in to comment.