diff --git a/Oqtane.Server/Controllers/FileController.cs b/Oqtane.Server/Controllers/FileController.cs index 04ff4f62..b65d4c9e 100644 --- a/Oqtane.Server/Controllers/FileController.cs +++ b/Oqtane.Server/Controllers/FileController.cs @@ -537,11 +537,10 @@ namespace Oqtane.Controllers //svg has no image and height, the attributes for svg are held in the XML viewport if(file.Extension != "svg") - { + { if (Constants.ImageFiles.Split(',').Contains(file.Extension.ToLower())) { FileStream stream = new FileStream(filepath, FileMode.Open, FileAccess.Read); - using (var image = Image.FromStream(stream)) { file.ImageHeight = image.Height;