Fixing that detecting the extension works regardless of casing

but it still works with Azure Blob Storage (which is case-sensitive) too
This commit is contained in:
Benedek Farkas 2024-12-02 17:48:56 +01:00
parent 318f9edd6f
commit 67b1214da3

View File

@ -85,7 +85,7 @@ namespace Orchard.MediaProcessing.Filters {
}
var src = GetAttributeValue(imgTag, "src");
var ext = string.IsNullOrEmpty(src) ? null : Path.GetExtension(src);
var ext = string.IsNullOrEmpty(src) ? null : Path.GetExtension(src).ToLowerInvariant();
var width = GetAttributeValueInt(imgTag, "width");
var height = GetAttributeValueInt(imgTag, "height");