From eba6d4770a9cbf574b8e8d26d28a1b531fcd0d79 Mon Sep 17 00:00:00 2001 From: BookerLiu Date: Wed, 12 Apr 2023 15:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Util/ImageUtil.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Util/ImageUtil.cs b/Util/ImageUtil.cs index df57d00..f881d31 100644 --- a/Util/ImageUtil.cs +++ b/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)