Example #1
0
 public string GenerateOuputFileName()
 {
     return(!string.IsNullOrEmpty(OutputPath)
         ? OutputPath.EnsureFileNameHasExtension(Path.GetExtension(InputPath))
         : Guid.NewGuid().ToString() + $"_trimmed_{Start}x{End}"
            + Path.GetExtension(InputPath));
 }
Example #2
0
 public string GenerateOuputFileName()
 {
     return(!string.IsNullOrEmpty(OutputPath)
         ? OutputPath.EnsureFileNameHasExtension(Path.GetExtension(InputPath))
         : Guid.NewGuid().ToString() + $"_cropped_{Width}x{Height}"
            + Path.GetExtension(InputPath));
 }