Ejemplo n.º 1
0
 private void ConvertToPNG()
 {
     foreach (var filePath in SelectedItemPaths)
     {
         if (Path.GetExtension(filePath).ToLower() == ".webp")
         {
             WebPConverter.ConvertToPNG(filePath);
         }
     }
 }
Ejemplo n.º 2
0
 private void ConvertToWebP()
 {
     foreach (var filePath in SelectedItemPaths)
     {
         string extension = Path.GetExtension(filePath).ToLower();
         if (extension.Equals(".jpg") || extension.Equals(".jpeg") || extension.Equals(".png"))
         {
             WebPConverter.ConvertToWebP(filePath);
         }
     }
 }