Explorar o código

✅ 优化代码

BookerLiu %!s(int64=2) %!d(string=hai) anos
pai
achega
eba6d4770a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Util/ImageUtil.cs

+ 2 - 1
Util/ImageUtil.cs

@@ -205,7 +205,8 @@ namespace GeekDesk.Util
             try
             {
                 FileInfo file = new FileInfo(filePath);
-                if (file.Exists && file.Length > 0)
+                if (file.Exists && file.Length > 0 
+                    && !System.IO.Path.GetExtension(filePath).Contains("psd"))
                 {
                     Image img = Image.FromFile(filePath);
                     if (img.Width <= tWidth && img.Height <= tHeight)